Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pt/animesonline): Rename + Update baseUrl + Fix extractors #3301

Merged
merged 7 commits into from
Jun 9, 2024
Merged

fix(pt/animesonline): Rename + Update baseUrl + Fix extractors #3301

merged 7 commits into from
Jun 9, 2024

Conversation

Claudemirovsky
Copy link
Contributor

Closes #3289
Checklist:

  • Updated extVersionCode value in build.gradle for individual extensions
  • Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Added the isNsfw = true flag in build.gradle when appropriate
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension

Comment on lines +89 to +91
val iframe = player.root().selectFirst("div#source-player-$playerId iframe")

return iframe?.attr("src")?.takeIf(String::isNotBlank)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
val iframe = player.root().selectFirst("div#source-player-$playerId iframe")
return iframe?.attr("src")?.takeIf(String::isNotBlank)
val iframe = player.root().selectFirst("div#source-player-$playerId iframe[src]")
return iframe?.attr("src")

Copy link
Contributor Author

@Claudemirovsky Claudemirovsky Jun 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the problem isn't the lack of the src attribute. This source is cursed enough to sometimes put a <iframe src="">

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about iframe[src~=.] then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still matches a src=" ", but I never saw this in the source (yet) so I guess it's safe

@jmir1 jmir1 merged commit 81149e4 into aniyomiorg:master Jun 9, 2024
5 checks passed
@Claudemirovsky Claudemirovsky deleted the fix/pt.animesgratis/rename-and-update-url branch June 9, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Animes Online: Changed name and domain
3 participants