ThePornDatabase / namer

Renames adult video files so that the plex/jellyfin plugins and stash script will match without user input. Runs server or command mode.
https://theporndb.net
182 stars 29 forks source link

`search_phash = False` is ignored if `send_phash = True`, contrary to comments in `namer.cfg` #199

Closed jsmthy closed 6 months ago

jsmthy commented 1 year ago

Background

In namer.cfg, in the Phash section, comments say that send_phash = True is ignored if search_phash = False.

[Phash]
# Calculate and use phashes in search for matches
search_phash = False

# Should phashes be sent to tpdb if no phash match was found but a name match was.
# Requires search_phash be true or is ignored.
send_phash = True

Problem

However, in L204, search_phash is not checked if new_metadata is found, probably through manually matching a failed file.

Proposed Solutions

  1. Create new config parameter to control calculating and sending phash for manual matches
  2. Update so that L204 requires both send_phash and search_phash to be true