## if you change anything, make shure you copy this between
##  derstandard.at.txt  and  derstandard.de.txt
##              ^^                       ^^

# for sub-feeds you need to use the .at instead of .de version
# choose your feed here:
# https://about.derstandard.at/newsletter/rss-feeds/

title: //div[@id='content-header']/h1
author: //div[@class='article-origins']
body: //article[@class='story-article'] | //div[@id='A']

# [wallabag] need this to find author
skip_json_ld: yes

strip_id_or_class: article-kicker
strip_id_or_class: article-title
strip_id_or_class: toolbar
strip_id_or_class: article-actions
strip_id_or_class: story-tool
strip_id_or_class: story-community

strip: //nav
strip: //button

strip: //ul[@class='lookupLinksArtikel']

strip: //meta
strip: //div[@itemprop='publisher']
strip: //div[@id='content-header']
strip: //div[@id='pageTop']
strip: //div[@id='toolbar']
strip: //div[@id='articleTools']
strip: //div[@id='weiterLesen']
strip: //div[@id='communityCanvas']
strip: //div[@class='credits']
strip: //div[@id='feature-cover']
strip: //div[@id='feature-meta']
strip: //li[@class='empty']
strip: //ul[@class='lookup-links']
strip: //p[@class='article-pubdate']
strip: //aside[@data-type='supplemental']
strip: //div[@class='article-byline']
strip: //div[@class='article-meta']
strip: //footer[starts-with(text(), 'Foto:')]
strip: //div[@data-section-type='newsletter']
strip: //a[contains(@href, '/schicken-sie-uns-ihre-bilder')]/parent::p

find_string: 0 ? postingCount() : '' ">
replace_string:

http_header(Cookie): DSGVO_ZUSAGE_V1=true

# Inject a hint for embedded content that can't be fetched
find_string: <script class="js-embed-template"
replace_string: <a href="." title="Rufen sie die Originalseite auf um den Inhalt zu sehen">[Eingebetteter Inhalt]</a><script class="foo-embed-template"

# wallabagger only: enlarge embeded video
find_string: <iframe data-ratio="16:9"
replace_string: <iframe width="640" height="360" data-ratio="16:9"

prune: no
tidy: no

test_url: https://derstandard.de/rss
test_url: https://www.derstandard.de/story/3000000196781/comeback-der-kinderarbeit-in-den-usa-nach-schulschluss-gehts-ins-kuehlhaus
