Add an expection

This commit is contained in:
UrloMythus
2025-06-08 21:35:59 +02:00 Unverified
parent e2f46e974c
commit 512d18cc63
+3 -1
View File
@@ -118,6 +118,8 @@ async def guardaserie(id,client):
else: else:
showname,date = get_info_tmdb(clean_id,ismovie,type) showname,date = get_info_tmdb(clean_id,ismovie,type)
showname = showname.replace("'"," ") showname = showname.replace("'"," ")
if "Guru" in showname:
showname = showname.split("-")[0]
if ismovie == 1: if ismovie == 1:
return None return None
page_url = await search(showname,date,client) page_url = await search(showname,date,client)
@@ -138,7 +140,7 @@ async def test_script():
from curl_cffi.requests import AsyncSession from curl_cffi.requests import AsyncSession
async with AsyncSession() as client: async with AsyncSession() as client:
# Replace with actual id, for example 'anime_id:episode' format # Replace with actual id, for example 'anime_id:episode' format
test_id = "tt0157246:1:1" # This is an example ID format tt0460649 test_id = "tmdb:36247:1:1" # This is an example ID format tt0460649
results = await guardaserie(test_id, client) results = await guardaserie(test_id, client)
print(results) print(results)