Skip to content

Commit

Permalink
BHD - add internal release skipping
Browse files Browse the repository at this point in the history
Their API is a little slow to update, which means existing dupe checking does not work.

This will brute force ban internal releases, and prevent auto uploading scripts from re-uploading recently released internal releases.
  • Loading branch information
Audionut committed Nov 29, 2024
1 parent dee0167 commit 9e9f5ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/trackers/BHD.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ async def edit_desc(self, meta):
return

async def search_existing(self, meta, disctype):
bhd_name = await self.edit_name(meta)
if any(phrase in bhd_name.lower() for phrase in ("-framestor", "-bhdstudio", "-bmf", "-decibel", "-d-zone", "-hifi", "-ncmt", "-tdd", "-flux", "-crfw", "-sonny", "-zr-", "-mkvultra", "-rpg", "-w4nk3r", "-irobot", "-beyondhd")):
console.print("[bold red]This is an internal BHD release, skipping upload[/bold red]")
meta['skipping'] = "BHD"
return
dupes = []
console.print("[yellow]Searching for existing torrents on site...")
category = meta['category']
Expand Down

0 comments on commit 9e9f5ee

Please sign in to comment.