Skip to content

Commit

Permalink
Correct OTW genre location
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Dec 27, 2024
1 parent 5e77f09 commit 9ee5965
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/trackers/OTW.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ async def upload(self, meta, disctype):
open_torrent.close()

async def search_existing(self, meta, disctype):
if not any(genre in meta['genres'] for genre in ['Animation', 'Family']):
console.print('[bold red]Content not allowed.')
meta['skipping'] = "OTW"
return
dupes = []
console.print("[yellow]Searching for existing torrents on OTW...")
params = {
Expand Down Expand Up @@ -193,10 +197,6 @@ async def search_existing(self, meta, disctype):
return dupes

async def search_torrent_page(self, meta, disctype):
if not any(genre in meta['genres'] for genre in ['Animation', 'Family']):
console.print('[bold red]Content not allowed.')
meta['skipping'] = "OTW"
return
torrent_file_path = f"{meta['base_dir']}/tmp/{meta['uuid']}/[{self.tracker}]{meta['clean_name']}.torrent"
Name = meta['name']
quoted_name = f'"{Name}"'
Expand Down

0 comments on commit 9ee5965

Please sign in to comment.