Skip to content

Commit

Permalink
Perform readability parse operation in background thread (#387)
Browse files Browse the repository at this point in the history
Co-authored-by: Sasikanth Miriyampalli <[email protected]>
  • Loading branch information
tramline-github[bot] and msasikanth authored Mar 18, 2024
1 parent a9ad299 commit f389e9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ReaderPresenter(

private suspend fun extractArticleHtmlContent(postLink: String, content: String): String {
val article =
withContext(dispatchersProvider.io) { Readability(postLink, content) }.parse()
withContext(dispatchersProvider.io) { Readability(postLink, content).parse() }
?: return content
val articleContent = article.content

Expand Down

0 comments on commit f389e9d

Please sign in to comment.