Closed ToshY closed 1 year ago
Unrelated tests failing
Edit
If possible tag a new release 🙏
We need to test whether the JSON serializer in Jikan API drops these newlines or replaces them with \n
.
Hey @pushrbx
Please add the same change for the other media types too.
Can you clarify which other media types? The MangaParser
and AnimeEpisodeParser
are also using the same XPath with meta tag, so I can update those too if that's what you're referring to.
Hey @pushrbx
Please add the same change for the other media types too.
Can you clarify which other media types? The
MangaParser
andAnimeEpisodeParser
are also using the same XPath with meta tag, so I can update those too if that's what you're referring to.
I was referring to any other parser where there is any parsing of "description" or "synopsis" where the \n
breakpoints would matter. That includes MangaPraser
and AnimeEpisodeParser
too.
@pushrbx
After looking over at leftover parsers again, the only parsers that use meta tags for descriptions/synopsis/about are those 2 mentioned before.
The more I tested those parsers, the less I wanted to change them due the following findings:
//h2[contains(@class, 'fw-b')]
.//h2[contains(@class, 'fw-b')]
and //div[contains(@class, 'badresult al')]
.//div[contains(@class, 'badresult al')]
.Because each media type behaves differently (regarding synopsis), I think it would be more manageable to cut it into separate PRs, each one fixing it for a specific media type and updating its corresponding test.
In order to not broaden the scope of the initial issue, I want to keep the PR as is.
Understood, then it's fine like this. Just one more thing:
@irfan-dahir is it possible to tag a new release for this?
Fixes #495