Open quenzt opened 3 weeks ago
Gogoanime is a little bit of a pita when it comes to that, as you can see in the example links you provided, one has "2nd season" and the other "season-2". In the meanwhile, please use yuugen, you will get the same videos, because they crawl gogo. They also do a better job at organizing their anime so stuff like this does not happen.
Describe the bug When
provider.get_search
with the gogo-provider one of the returned values is an identifier that uniquely identifies an anime. For dubbed anime the-dub
or-japanese-dub
suffix is removed from the anime. When callingget_info()
on an anime where the non dubbed version of the anime has an identifier that is not the dubbed version's identifier minus-dub
or-japanese-dub
, it fails with a 404 error.For example, these are the links to the dubbed and subbed version of the same anime:
https://gogoanime3.co/category/tate-no-yuusha-no-nariagari-2nd-season
https://gogoanime3.co/category/tate-no-yuusha-no-nariagari-season-2-dub
When using theprovider.get_search
the dubbed version gets the identifiertate-no-yuusha-no-nariagari-season-2
If you now execute
get_info()
on the dubbed version you get a 404 error, because it tries to fetchhttps://gogoanime3.co/category/tate-no-yuusha-no-nariagari-season-2
and that page does not exist.To Reproduce take a look at this mini-script
Running it causes the following error
Expected behavior It should not 404 error out. Instead, it should fetch the info from either the dubbed or non dubbed version.
Info
Platform