Skip to content

fix: Hosters feature detection - #2216

Merged
Secozzi merged 1 commit into
aniyomiorg:mainfrom
hollowshiroyuki:fix/snafu
Oct 28, 2025
Merged

fix: Hosters feature detection#2216
Secozzi merged 1 commit into
aniyomiorg:mainfrom
hollowshiroyuki:fix/snafu

Conversation

@hollowshiroyuki

@hollowshiroyuki hollowshiroyuki commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Add other builtin classes implementing 'hoster' features to detection.

Detection was going down class dependency tree until it finds AnimeHttpSource.
But extensions might also be ParsedAnimeHttpSource which implements hosterListParse and caused false positive.
Same goes for AnimeSource which implements the getHosterList method, and would crash if an extension was inheriting it instead of higher level classes such as AnimeHttpSource.

my bad, overlooked these cases since all the exts i tested with were using AnimeHttpSource, observe peak fr*nch engineering

Closes #2213 #2215
(Probably not 2215 fully since hosters bad detection shouldn't crash the app when opening MPV settings ?)

@Secozzi
Secozzi merged commit 1d690d8 into aniyomiorg:main Oct 28, 2025
1 check passed
Secozzi pushed a commit to quickdesh/Animiru that referenced this pull request Nov 3, 2025
quickdesh pushed a commit to quickdesh/Animiru that referenced this pull request Dec 9, 2025
* fix: Fix downloaded videos not being able to play (aniyomiorg#2165)

(cherry picked from commit 261b7b7)

* Bump some dependencies & lib version

* Fix migration progress not updating and category flag mischeck

* Update dependency com.android.tools.build:gradle to v8.13.0 (#2449)

(cherry picked from commit bd90307df9ca2f0d424483b29c0dd640eabc0f5f)

* Update GitHub Actions (#2443)

(cherry picked from commit 95357a862567bb101caca4965869f4943d68b5ab)

* Update dependency io.kotest:kotest-assertions-core to v6.0.3 (#2439)

(cherry picked from commit e573f72cfd5b6c66709ba948ce29c7246a9832e8)

* Update dependency org.jsoup:jsoup to v1.21.2 (#2438)

(cherry picked from commit 57c82b30bab20110832eecc4a825441708eaa02b)

* Update lifecycle.version to v2.9.3 (#2447)

(cherry picked from commit 49562e1915108ac28fa3308d4eed319bb9ed61d5)

* Update dependency androidx.compose:compose-bom to v2025.09.00 (#2401)

(cherry picked from commit 9f5c4e03b23dab80051afa458361ce62133febbf)

* Update dependency androidx.work:work-runtime to v2.10.4 (#2497)

(cherry picked from commit 94f711ba2a67d0da52ba26978f5c4a103abc7f69)

* Update dependency androidx.benchmark:benchmark-macro-junit4 to v1.4.1 (#2496)

(cherry picked from commit 6495a2ea430c82a8481b10ef345669d8ff915cac)

* Update dependency com.google.firebase:firebase-bom to v34.2.0 (aniyomiorg#2376)

(cherry picked from commit 0d926626a1916783b67b3ae8cd2142aa90120e30)

* Bump compile and target sdk

(cherry picked from commit d3b7f7e55ff6609a2cddf1765205ba35c6c26b83)

* Replace `compose-stable-marker` with `compose-runtime-annotation`

(cherry picked from commit 4ac9fcd4d3ff2eed59d9c8454d7463b7c9e6dda6)

* Update dependency androidx.activity:activity-compose to v1.11.0 (#2499)

(cherry picked from commit 060e5b2e2e8ad85886c4d3362ba1ae56fac52f79)

* Update dependency androidx.core:core-ktx to v1.17.0 (#2402)

(cherry picked from commit 60c66bbd3a12e48bff52257c27d6b868e97da1d7)

* Update sqlite to v2.6.0 (#2504)

(cherry picked from commit 29e6a2c4a6a32deae4c067c51b7e863b8f8128bb)

* Update lifecycle.version to v2.9.4 (#2503)

Update dependency androidx.lifecycle:lifecycle-process to v2.9.4

(cherry picked from commit 86d85f74c097b8b52eb6a91887a055c92e1066f5)

* Improve spoofing of `X-Requested-With` header to support newer WebView versions (#2491)

(cherry picked from commit 065147472e8e683c47d11f3e00386aba2a7c1bac)

* Update dependency com.diffplug.spotless:spotless-plugin-gradle to v8 (#2526)

(cherry picked from commit d4d18d0898d7fec07e6021e60481948a40b162ad)

* Update sqlite to v2.6.1 (#2525)

(cherry picked from commit 5637860dd2ed637223014433e1e6005885af10a1)

* Update dependency androidx.work:work-runtime to v2.10.5 (#2523)

(cherry picked from commit d61a41e8192786c8bb958652098a704d79ad5f5d)

* Update kotlin monorepo to v2.2.20 (#2498)

(cherry picked from commit 5236d003d27d2aaa8a4baaa8aa4dfc0c8b299fea)

* Update markdown to 0.37.0 (#2516)

(cherry picked from commit 27a4f6f45c0ba639450428f5f58b1c938fe3032e)

* Update dependency io.mockk:mockk to v1.14.6 (#2549)

(cherry picked from commit 607f0ea9cd08c070323c4c1a46efec53dc4b1358)

* Update moko to v0.25.1 (#2550)

(cherry picked from commit 04168ecec84a3e2b470468002c05bbe9e5e538b5)

* Update dependency org.junit.jupiter:junit-jupiter to v6 (#2553)

(cherry picked from commit 9a45d248b1545ec192b4d5cff9b0756d0a7a12dd)

* Update GitHub Actions (#2552)

(cherry picked from commit 96347e3f762817fbd53023f41956ba7533335c5d)

* Update gradle/actions action to v5 (#2554)

(cherry picked from commit 6cee9112394e25a9d7cb12b70ee909d47037a4ab)

* Update dependency com.google.firebase:firebase-bom to v34.3.0 (#2508)

(cherry picked from commit 1d5bc8d2c2e3cb6df56561782e2e2842af3eaa50)

* Fix disabling incognito mode from notification (#2512)

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

(cherry picked from commit 96e5131358110079587d262d37ec346e10941758)

* Update softprops/action-gh-release action to v2.4.0 (#2562)

(cherry picked from commit ad6b651b3767313f6f5cd58af6515e598c8eeff1)

* Update okhttp monorepo to v5.2.0 (#2564)

(cherry picked from commit 1a31c7c7ee31eee19030875d11ec1f31eab895a4)

* Fix switch preference

* Improve handling of downloads for chapters with same metadata and optionally for OSes that don't support Unicode in filename

Co-authored-by: jkim <jhskim@hotmail.com>
Co-authored-by: fatotak <111342761+fatotak@users.noreply.github.com>
Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Radon Rosborough <6559064+raxod502@users.noreply.github.com>

* Update okhttp monorepo to v5.2.1 (#2577)

(cherry picked from commit 57a0ab67112d1966c00d7ec433a2cff70064495e)

* run spotlessApply

* chore: changelog

* fix: source Seasons/Hosters feature detection

Co-authored-by: hollow <35398794+hollowshiroyuki@users.noreply.github.com>

* chore: remove unused imports

* Fix issue with ext lib 14 compatibility

* fix: Make volume gesture the same sensitivity as brightness

Used to be dependent on the amount of volume levels of the device

(cherry picked from commit 12a4bb6)

* chore(i18n): Translations update from Hosted Weblate (aniyomiorg#2074)

Co-authored-by: jmir1 <jhmiramon@gmail.com>
Co-authored-by: sami155 <56385412+sami155@users.noreply.github.com>
Co-authored-by: Frosted <frosted@users.noreply.hosted.weblate.org>
Co-authored-by: Максим Горпиніч <gorpinicmaksim5@gmail.com>
Co-authored-by: roigoatzzz <noagayibor@hotmail.com>
Co-authored-by: Champ0999 <champ0999@users.noreply.hosted.weblate.org>
Co-authored-by: Jules CV <ptitet73@gmail.com>
Co-authored-by: Nicola Bortoletto <nicola.bortoletto@live.com>
Co-authored-by: Manuela Silva <mmsrs@sky.com>
Co-authored-by: YASSINE_ YT <simoyassine911@gmail.com>
Co-authored-by: Rayen Daadaa <rayendaadaa35@gmail.com>
Co-authored-by: Akhil Raj <akhilakae07@gmail.com>
Co-authored-by: Hualiang <642615676@qq.com>
Co-authored-by: Thomas Favre <favr.tho@gmail.com>
Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com>
Co-authored-by: KOXXPL <koxiu@pm.me>
Co-authored-by: Jottape98 <jpmelim3@gmail.com>
Co-authored-by: N. Hao <nguyenviethao2002@gmail.com>
Co-authored-by: XblateX <blate@users.noreply.hosted.weblate.org>
Co-authored-by: Silly Toons <sillytoons33@gmail.com>
Co-authored-by: Cristian Peralta <drandaken@gmail.com>
Co-authored-by: Itsmechinmoy <itsmechinmoy@users.noreply.hosted.weblate.org>
Co-authored-by: Omgeta <anooptiger@hotmail.com>
Co-authored-by: Michal Marzec <michal.wladyslaw.marzec@gmail.com>
Co-authored-by: Milo Ivir <mail@milotype.de>
Co-authored-by: Angel imbaquingo <angellema9083@gmail.com>
Co-authored-by: Nataniel Dika Kurniawan <hikawaart2@gmail.com>
Co-authored-by: Максим Горпиніч <gorpinicmaksim0@gmail.com>
Co-authored-by: ayaao <myrgdream@gmail.com>
Co-authored-by: Azazak 142 <azazak142@gmail.com>
Co-authored-by: Chopper <ttony2chopper@gmail.com>
Co-authored-by: Thiago Carmona <Thiago_Carmona@tuta.io>
Co-authored-by: Jan Šmedek <smedek.j@seznam.cz>
Co-authored-by: Diego VO <166761329+DarkotkV@users.noreply.github.com>
Co-authored-by: Marian Napierkowski <napierkowskimar@gmail.com>
Co-authored-by: EladBG-code <eladbargal2@gmail.com>
(cherry picked from commit 777b5cb)

* fix: Hosters feature detection (aniyomiorg#2216)

(cherry picked from commit 1d690d8)

* feat: Enable horizontal seek gesture summary (aniyomiorg#2224)

(cherry picked from commit 97a7deb)

---------

Co-authored-by: Mend Renovate <bot@renovateapp.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Guzmazow <guzmazow@gmail.com>
Co-authored-by: NGB-Was-Taken <76197326+ngb-was-taken@users.noreply.github.com>
Co-authored-by: jkim <jhskim@hotmail.com>
Co-authored-by: fatotak <111342761+fatotak@users.noreply.github.com>
Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
Co-authored-by: Radon Rosborough <6559064+raxod502@users.noreply.github.com>
Co-authored-by: hollow <35398794+hollowshiroyuki@users.noreply.github.com>
Co-authored-by: Joël Miramon <joel@miramon.de>
Co-authored-by: Weblate (bot) <noreply@weblate.org>
Co-authored-by: jmir1 <jhmiramon@gmail.com>
Co-authored-by: sami155 <56385412+sami155@users.noreply.github.com>
Co-authored-by: Frosted <frosted@users.noreply.hosted.weblate.org>
Co-authored-by: Максим Горпиніч <gorpinicmaksim5@gmail.com>
Co-authored-by: roigoatzzz <noagayibor@hotmail.com>
Co-authored-by: Champ0999 <champ0999@users.noreply.hosted.weblate.org>
Co-authored-by: Jules CV <ptitet73@gmail.com>
Co-authored-by: Nicola Bortoletto <nicola.bortoletto@live.com>
Co-authored-by: Manuela Silva <mmsrs@sky.com>
Co-authored-by: YASSINE_ YT <simoyassine911@gmail.com>
Co-authored-by: Rayen Daadaa <rayendaadaa35@gmail.com>
Co-authored-by: Akhil Raj <akhilakae07@gmail.com>
Co-authored-by: Hualiang <642615676@qq.com>
Co-authored-by: Thomas Favre <favr.tho@gmail.com>
Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com>
Co-authored-by: KOXXPL <koxiu@pm.me>
Co-authored-by: Jottape98 <jpmelim3@gmail.com>
Co-authored-by: N. Hao <nguyenviethao2002@gmail.com>
Co-authored-by: XblateX <blate@users.noreply.hosted.weblate.org>
Co-authored-by: Silly Toons <sillytoons33@gmail.com>
Co-authored-by: Cristian Peralta <drandaken@gmail.com>
Co-authored-by: Itsmechinmoy <itsmechinmoy@users.noreply.hosted.weblate.org>
Co-authored-by: Omgeta <anooptiger@hotmail.com>
Co-authored-by: Michal Marzec <michal.wladyslaw.marzec@gmail.com>
Co-authored-by: Milo Ivir <mail@milotype.de>
Co-authored-by: Angel imbaquingo <angellema9083@gmail.com>
Co-authored-by: Nataniel Dika Kurniawan <hikawaart2@gmail.com>
Co-authored-by: Максим Горпиніч <gorpinicmaksim0@gmail.com>
Co-authored-by: ayaao <myrgdream@gmail.com>
Co-authored-by: Azazak 142 <azazak142@gmail.com>
Co-authored-by: Chopper <ttony2chopper@gmail.com>
Co-authored-by: Thiago Carmona <Thiago_Carmona@tuta.io>
Co-authored-by: Jan Šmedek <smedek.j@seznam.cz>
Co-authored-by: Diego VO <166761329+DarkotkV@users.noreply.github.com>
Co-authored-by: Marian Napierkowski <napierkowskimar@gmail.com>
Co-authored-by: EladBG-code <eladbargal2@gmail.com>
Co-authored-by: kenkoro <85745790+kenkoro@users.noreply.github.com>
weblate pushed a commit to weblate/anikku that referenced this pull request Aug 27, 2026
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.

Error in loading episodes

2 participants