diff --git a/src/prep.py b/src/prep.py index ce368684..fb745993 100644 --- a/src/prep.py +++ b/src/prep.py @@ -564,7 +564,6 @@ async def gather_prep(self, meta, mode): if match: found_match = True else: - timeout_duration = 2 # seconds # Process all trackers with API = true if no specific tracker is set in meta default_trackers = self.config['TRACKERS'].get('default_trackers', "").split(", ") @@ -574,12 +573,9 @@ async def gather_prep(self, meta, mode): try: meta, match = await asyncio.wait_for( self.update_metadata_from_tracker('PTP', ptp, meta, search_term, search_file_folder), - timeout=timeout_duration ) if match: found_match = True - except asyncio.TimeoutError: - print("PTP tracker request timed out.") except aiohttp.ClientSSLError: print("PTP tracker request failed due to SSL error.") except requests.exceptions.ConnectionError as conn_err: @@ -592,12 +588,9 @@ async def gather_prep(self, meta, mode): try: meta, match = await asyncio.wait_for( self.update_metadata_from_tracker('BLU', blu, meta, search_term, search_file_folder), - timeout=timeout_duration ) if match: found_match = True - except asyncio.TimeoutError: - print("BLU tracker request timed out.") except aiohttp.ClientSSLError: print("BLU tracker request failed due to SSL error.") except requests.exceptions.ConnectionError as conn_err: @@ -609,12 +602,9 @@ async def gather_prep(self, meta, mode): try: meta, match = await asyncio.wait_for( self.update_metadata_from_tracker('AITHER', aither, meta, search_term, search_file_folder), - timeout=timeout_duration ) if match: found_match = True - except asyncio.TimeoutError: - print("AITHER tracker request timed out.") except aiohttp.ClientSSLError: print("AITHER tracker request failed due to SSL error.") except requests.exceptions.ConnectionError as conn_err: @@ -626,12 +616,9 @@ async def gather_prep(self, meta, mode): try: meta, match = await asyncio.wait_for( self.update_metadata_from_tracker('LST', lst, meta, search_term, search_file_folder), - timeout=timeout_duration ) if match: found_match = True - except asyncio.TimeoutError: - print("LST tracker request timed out.") except aiohttp.ClientSSLError: print("LST tracker request failed due to SSL error.") except requests.exceptions.ConnectionError as conn_err: @@ -643,12 +630,9 @@ async def gather_prep(self, meta, mode): try: meta, match = await asyncio.wait_for( self.update_metadata_from_tracker('OE', oe, meta, search_term, search_file_folder), - timeout=timeout_duration ) if match: found_match = True - except asyncio.TimeoutError: - print("OE tracker request timed out.") except aiohttp.ClientSSLError: print("OE tracker request failed due to SSL error.") except requests.exceptions.ConnectionError as conn_err: @@ -660,12 +644,9 @@ async def gather_prep(self, meta, mode): try: meta, match = await asyncio.wait_for( self.update_metadata_from_tracker('TIK', tik, meta, search_term, search_file_folder), - timeout=timeout_duration ) if match: found_match = True - except asyncio.TimeoutError: - print("TIK tracker request timed out.") except aiohttp.ClientSSLError: print("TIK tracker request failed due to SSL error.") except requests.exceptions.ConnectionError as conn_err: @@ -677,12 +658,9 @@ async def gather_prep(self, meta, mode): try: meta, match = await asyncio.wait_for( self.update_metadata_from_tracker('HDB', hdb, meta, search_term, search_file_folder), - timeout=timeout_duration ) if match: found_match = True - except asyncio.TimeoutError: - print("HDB tracker request timed out.") except aiohttp.ClientSSLError: print("HDB tracker request failed due to SSL error.") except requests.exceptions.ConnectionError as conn_err: