summaryrefslogtreecommitdiffstats
path: root/articleenhancer
diff options
context:
space:
mode:
authorKonrad Graefe <konradgraefe@aol.com>2015-03-31 15:43:44 +0200
committerKonrad Graefe <konradgraefe@aol.com>2015-03-31 15:43:44 +0200
commit2410729d1b4313ac163189faa0b0f42d06b6cdfe (patch)
tree75d54f21764b4349723bc740d19a6f48850f9a17 /articleenhancer
parent36f5199ba1d176fddb1ca78357209f05f0fbcf19 (diff)
Improve article enhancer for sueddeutsche.de
This improves the article enhancer for sueedeutsche.de to fetch just the summary from the top of each article instead of the whole article which bypasses the paywall sueddeutsche.de introduced last week (and that is not the purpose of the news app, right?). The summary is more detailed than the one delivered via RSS so the enhancer is still usefull. Plus it adds the header image of the article.
Diffstat (limited to 'articleenhancer')
-rw-r--r--articleenhancer/xpathenhancers.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/articleenhancer/xpathenhancers.json b/articleenhancer/xpathenhancers.json
index 00047ea96..7e1306d48 100644
--- a/articleenhancer/xpathenhancers.json
+++ b/articleenhancer/xpathenhancers.json
@@ -163,7 +163,7 @@
"%smashingmagazine.com%": "//article[contains(@class,'post')]/p"
},
"sueddeutsche.de": {
- "%sz.de%": "//article[@id='sitecontent']/section[@class='body']/*[not(contains(@class, 'ad'))]"
+ "%sz.de%": "//article[@id='sitecontent']/section[@class='topenrichment']//img | //article[@id='sitecontent']/section[@class='body']/section[@class='authors']/preceding-sibling::*[not(contains(@class, 'ad'))]"
},
"lifehacker.com": {
"%lifehacker.com%": "//div[contains(@class,'entry-content')]"