Skip to content

Commit

Permalink
Reordered default plugins so HtmlMetadataExtractor overrides WebAppMa…
Browse files Browse the repository at this point in the history
…nifestParser. (#26)
  • Loading branch information
ciferkey authored Aug 5, 2022
1 parent 3b4586c commit 048c1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/chimbori/crux/Crux.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public fun createDefaultPlugins(okHttpClient: OkHttpClient): List<Plugin> = list
TrackingParameterRemover(),
// Prefer canonical URLs over AMP URLs.
AmpRedirector(refetchContentFromCanonicalUrl = true, okHttpClient),
// Fetches and parses the Web Manifest. May replace existing favicon URL with one from the manifest.json.
WebAppManifestParser(okHttpClient),
// Parses many standard HTML metadata attributes.
HtmlMetadataExtractor(okHttpClient),
// Extracts the best possible favicon from all the markup available on the page itself.
FaviconExtractor(),
// Fetches and parses the Web Manifest. May replace existing favicon URL with one from the manifest.json.
WebAppManifestParser(okHttpClient),
// Parses the content of the page to remove ads, navigation, and all the other fluff.
ArticleExtractor(okHttpClient),
)
Expand Down

0 comments on commit 048c1be

Please sign in to comment.