Conversation
|
I would think that we could keep existing phashes perhaps change the fingerprint type to |
|
imo, I don't think adding an additional phash type or allowing for multiple phashes is a good idea. It's just going to add complexity in many different places. Phashes aren't really exact, they're only there to aid in matching. Incorrect phashes are an issue in stash-boxes anyway, from users submitting the wrong scene entirely - so I don't think that adding all this additional complexity to try avoid this problem for short files is needed. I think this issue should be dealt with on the stash-box side - "new-style" phashes can overtake the previous ones organically, and if there are issues with specific scenes, the problematic old phashes should be removed and "banned" from stash-box individually. A migration to regenerate phashes for existing short scenes is a good idea - if it is "advertised" enough then we'd have very few "old-style" phashes submitted once the change makes it to a release. An option to submit the new phashes to stash-boxes would also be useful, but it should very definitely be disabled by default. A toggle to enable to previous behaviour would be fine, but I don't know why you'd want to actually use it (ie why you'd want the old behaviour). These are just my thoughts as it stands - I am open to be convinced otherwise. |
|
My proposal is to have a schema migration that removes existing phashes for scenes < 2.5 minutes - with a migration warning indicating that this is what will be done, and that these phashes need to be regenerated. This reduces the amount of people submitting old version phashes to only those running older versions. On the stash-box side, admins could do the same thing (manually via sql) but imo it's not a huge issue. |
|
I like getting rid of "old" hashes and just going with the new ones. However there will be a good while where new users who are trying to match content on Stashbox from before the change, will get zero results until someone does a title match and submits the new hash to the existing scene. Maybe a transition phase?
Granted it is some extra complexity, but it might allow for Stashboxes to get the new hashes attached to existing scenes quicker than requiring someone to do a title Match to submit them. |
|
Implemented my transition phase proposal. Seems to work well matching on the old hash and submitting the new hash. |
|
Not sure why the tests fail with the migration, they run fine locally. |
@Flashy78 There are two migration files for schema version 50 - version 50 is already taken by the multiple image URL migration. All you should need to do is change 50 to 51. |
As always, the error message was pretty clear what the issue was. Thanks for helping me realize my fork was a few days old. |
|
superseded by #7225 This had too many conflicts and old code to be resurrected |
Resolves #3722
Updates new phash generation to use:
Open question on what to do about existing hashes.