Fixed Demon Slayer

This commit is contained in:
UrloMythus
2024-08-28 20:02:21 +02:00 Unverified
parent 9445964417
commit 1a2c5e7b88
+2 -1
View File
@@ -18,7 +18,6 @@ showname_replace = {
"Season": "", "Season": "",
" ": " ", " ": " ",
"Shippuuden": "Shippuden", "Shippuuden": "Shippuden",
":":"",
" ": "+", " ": "+",
} }
@@ -146,6 +145,8 @@ async def animeworld(id,client):
for key in showname_replace: for key in showname_replace:
if key in showname: # Check if the key is a substring of showname if key in showname: # Check if the key is a substring of showname
showname = showname.replace(key, showname_replace[key]) showname = showname.replace(key, showname_replace[key])
if "Naruto:" in showname:
showname = showname.replace(":", "")
final_urls = await search(showname,date,ismovie,episode,client) final_urls = await search(showname,date,ismovie,episode,client)
return final_urls return final_urls
except: except: