Skip to content

Commit

Permalink
Merge branch 'master' into descriptions
Browse files Browse the repository at this point in the history
Audionut committed Nov 1, 2024
2 parents 48f5f4e + 44c6492 commit dbc8e0c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/prep.py
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit dbc8e0c

Please sign in to comment.