Skip to content

Migrate HTML parsing from Jsoup to fleeksoft/ksoup - #110

Draft
markst wants to merge 4 commits into
prajwalch:mainfrom
markst:migrate/jsoup-to-ksoup
Draft

Migrate HTML parsing from Jsoup to fleeksoft/ksoup#110
markst wants to merge 4 commits into
prajwalch:mainfrom
markst:migrate/jsoup-to-ksoup

Conversation

@markst

@markst markst commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

As mentioned: #108 (comment) there are some steps to be taken in order to migrate to multiplatform support. Starting with Jsoup which can be replaced with a drop in Ksoup replacement.

Summary

  • Replace JVM-only Jsoup with fleeksoft/ksoup (0.2.6), a KMP-compatible Jsoup port, so HTML parsing is ready for a future multiplatform split.
  • Migrate all HTML search-provider parsers to Ksoup (imports/parse calls), with a small nodeValue()TextNode.text() API adjustment where needed.
  • Ignore nested **/build/ directories so module build outputs are not untracked.

Test plan

  • ./gradlew :app:compileDebugKotlin succeeds
  • Spot-check a few providers that use attr("abs:href") (base URI still passed to Ksoup.parse)
  • Spot-check Eztv / BlueRoms / AnimeTosho details parsing (former nodeValue() paths)
  • Confirm androidApp/build (and other nested build/) stay ignored by git

Cursor added 4 commits August 13, 2026 17:20
Prevents module build outputs (e.g. androidApp/build) from showing up as untracked files.
Ksoup is a KMP-compatible Jsoup port, preparing HTML parsing for a future multiplatform split.
Update imports and parse calls across HTML providers, and replace nodeValue() with TextNode.text() where Ksoup's Node API differs.
@markst

markst commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

May be an idea to add some unit tests for each provider?

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.

1 participant