ryelogheat / xpbot

Analyze a media file, identify the TMDB/IMDB, and generate all the necessary info to upload a torrent to a private tracker using the UNIT3D codebase
55 stars 27 forks source link

Improved dupe check: considering HDR formats #61

Closed WhyNoobMaster69IsNotAvailable closed 2 years ago

WhyNoobMaster69IsNotAvailable commented 2 years ago

Improving the dupe check logic to consider HDR formats of torrents as well. If we are trying to upload an HDR release, the uploader tags non-hdr / dv releases as possible dupes. Which is not the case.

If we are trying to upload Halo S01E08 2160p WEB-DL DD+ 5.1 Atmos HDR H.265-NTb and there already exists an upload with the title Halo S01E08 2160p WEB-DL DD+ 5.1 Atmos H.265-NTb and Halo S01E08 2160p WEB-DL DD+ 5.1 Atmos DV H.265-NTb these are not dupe of our upload because they are of different hdr formats.

The propose dupe check mechanism considers hdr formats as well.


  1. Along with source, we keep a note of the HDR formats of the torrents (from tracker)
  2. We identify which is the HDR format of the torrent we are trying to upload
  3. Ignore releases that doesn'e belong to our format.

ie: If we are trying to upload HDR releases, then all NON-HDR and DV releases can be ignored from dupe check

WhyNoobMaster69IsNotAvailable commented 2 years ago

Please note that i migrated these code from another uploader, and haven't tested the code in xpbot.

ryelogheat commented 2 years ago

This is a good idea, I've started seeing more & more WEB-DLs of the same episode & same resolution but with multiple HDR "types" available. It hadn't even crossed my mind to check for that. I'll review & test the changes then merge it once I can verify it works :+1: thanks