Add an expection
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user