Whisparr / Whisparr

GNU General Public License v3.0
494 stars 54 forks source link

Better video file matching using TPDB (PHASH and Search string) #112

Open dkerr7380 opened 10 months ago

dkerr7380 commented 10 months ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe

This feature is for have better video file matching when importing, by leveraging features from TPDB like PHASH matching and search string.

Describe the solution you'd like

Better intergration with TPDB to resolve unmatch video files to scenes. In the even that Whisperr cannot match a scene allower for TPDB to resolve via the following methods

  1. Generate and send a PHASH to tpdb to get back a match. This is the same way how Namer matches videos to scenes https://github.com/ThePornDatabase/namer

  2. As a fallback, allow Interactive resolution with TPDB by via search string and selecting a matching from a list of results (pref with images)

Endpoints (examples) Type Example
PHASH https://api.metadataapi.net/scenes?hash=9d29c6789e457683&hashType=PHASH
Parse https://api.metadataapi.net/scenes?parse=&limit=25

Describe alternatives you've considered

N/A

Anything else?

No response

nod44 commented 1 month ago

As a suggestion / discussion topic:

The benefits of this approach is that it would be vastly less work to implement, it would allow manual matching and overrides to be easier, and it also allows stash uses to more readily organize files on disk which is something stash doesn't want to do.

CC: @Qstick @dkerr7380 @thezak48