From 9ee59653ec273432cfff4bc60d74f4f047db8221 Mon Sep 17 00:00:00 2001 From: Audionut Date: Fri, 27 Dec 2024 14:40:33 +1000 Subject: [PATCH] Correct OTW genre location --- src/trackers/OTW.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/trackers/OTW.py b/src/trackers/OTW.py index 99ff3115..cec5f7dc 100644 --- a/src/trackers/OTW.py +++ b/src/trackers/OTW.py @@ -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 = { @@ -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}"'