Skip to content
Snippets Groups Projects
Commit 4fdef7b8 authored by David Izquierdo's avatar David Izquierdo Committed by Frédéric Guillot
Browse files

Add scrape and rewrite rules for webtoons

Although the only source I have for the rewrite rule is, in fact, https://github.com/miniflux/v2/pull/892, it does work when combined with add_dynamic_image and scraping the right element. I have not investigated further.

Works around https://github.com/miniflux/v2/issues/775 and https://github.com/miniflux/v2/issues/1871 (as in, gives us working webtoons feeds but referer spoofing would still be a nice tool to have).

Fixes https://github.com/miniflux/v2/issues/256.
parent 7988241e
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ var predefinedRules = map[string]string{ ...@@ -32,6 +32,7 @@ var predefinedRules = map[string]string{
"thedoghousediaries.com": "add_image_title", "thedoghousediaries.com": "add_image_title",
"theverge.com": `add_dynamic_image, remove("div.duet--recirculation--related-list")`, "theverge.com": `add_dynamic_image, remove("div.duet--recirculation--related-list")`,
"treelobsters.com": "add_image_title", "treelobsters.com": "add_image_title",
"webtoons.com": `add_dynamic_image,replace("webtoon"|"swebtoon")`,
"www.qwantz.com": "add_image_title,add_mailto_subject", "www.qwantz.com": "add_image_title,add_mailto_subject",
"www.recalbox.com": "parse_markdown", "www.recalbox.com": "parse_markdown",
"xkcd.com": "add_image_title", "xkcd.com": "add_image_title",
......
...@@ -50,6 +50,7 @@ var predefinedRules = map[string]string{ ...@@ -50,6 +50,7 @@ var predefinedRules = map[string]string{
"universfreebox.com": "#corps_corps", "universfreebox.com": "#corps_corps",
"version2.dk": "section.body", "version2.dk": "section.body",
"wdwnt.com": "div.entry-content", "wdwnt.com": "div.entry-content",
"webtoons.com": ".viewer_img",
"wired.com": "main figure, article", "wired.com": "main figure, article",
"zeit.de": ".summary, .article-body", "zeit.de": ".summary, .article-body",
"zdnet.com": "div.storyBody", "zdnet.com": "div.storyBody",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment