mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-02-04 11:07:48 -08:00
fix(hianime-provider): first split by ?
This commit is contained in:
@@ -64,7 +64,8 @@ class HiAnime(BaseAnimeProvider):
|
||||
"""
|
||||
try:
|
||||
# The numeric ID is the last part of the slug.
|
||||
anime_id_numeric = params.id.split("-")[-1]
|
||||
clean_id_slug = params.id.split("?")[0]
|
||||
anime_id_numeric = clean_id_slug.split("-")[-1]
|
||||
if not anime_id_numeric.isdigit():
|
||||
raise ValueError("Could not extract numeric ID from anime slug.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user