jikan-me / jikan

Unofficial MyAnimeList PHP+REST API which provides functions other than the official API
https://jikan.moe
MIT License
877 stars 93 forks source link

Opening and endig themes #297

Closed pastapareo closed 4 years ago

pastapareo commented 4 years ago

When getting info for an anime, if there are multiple themes and they are not in the correct format #1: Theme name, it is not correctly parsed.

Example: https://api.jikan.moe/v3/anime/25681/

    "ending_themes": [
        "\"Ototoi Oide (おとといおいで)\" by Hanae (eps 1-5, 7-12)#2:\"Tsubasa☆Bassa☆Hazard (翼☆バサ☆ハザード)\" by Kurama (CV: Daisuke Kishio) (ep 6)"
    ]

Example 2: https://api.jikan.moe/v3/anime/21511

    "ending_themes": [
        "\"Miiro (海色)\" by AKINO from bless4 (ep 1)",
        "\"Fubuki (吹雪)\" by Shiena Nishizawa (eps 2, 4-12)#3 \"Let's not say \"good-bye\"\" by Akagi, Kaga, Zuikaku, Kongou, Shimakaze, Fubuki (Saki Fujita, Yuka Iguchi, Iori Nomizu, Nao Touyama, Ayane Sakura, Sumire Uesaka) (ep 3)"
    ]

Is this a problem with parsing or expected result?

irfan-dahir commented 4 years ago

Looks like a parsing issue. Thanks for reporting!

Transferring the issue to the parser repo.

Update: Fixed. You'll see the appropriate response once the existing cache has expired.