Skip to content

Commit

Permalink
fix heise.de title detection (#353)
Browse files Browse the repository at this point in the history
Fixes the title detection of heise.de articles. This config used default
<title> tag, but this tag is polluted with the prefix string
"Druckversion - " and sometimes with suffixed e.g with " | heise online"
Therefore we replace those strings with nothing.
  • Loading branch information
Strubbl authored and fivefilters committed Oct 28, 2017
1 parent d7da5ae commit b615098
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions heise.de.txt
Expand Up @@ -42,6 +42,12 @@ strip_id_or_class: ad_
# Some optimizations
replace_string(<h5>): <h2>
replace_string(</h5>): </h2>
replace_string(<title>Druckversion - ): <title>
replace_string( | heise online</title>): </title>
replace_string( | c't Magazin</title>): </title>
replace_string( | Telepolis</title>): </title>
replace_string( | heise Security</title>): </title>
replace_string( | heise Autos</title>): </title>
# this line breaks the parser
#replace_string(<span class="bild_rechts" style="width:): <p "
replace_string(<div class="heisebox">): <blockquote>
Expand Down

0 comments on commit b615098

Please sign in to comment.