Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
filter out unwanted articles with Kovid's code
Browse files Browse the repository at this point in the history
  • Loading branch information
t3d committed Sep 29, 2010
1 parent c93f69b commit c9945ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beta/rmf24_opinie.recipe
Expand Up @@ -39,6 +39,12 @@ class RMF24_opinie(BasicNewsRecipe):
h1 { font-size: 1.2em; }
'''

# thanks to Kovid Goyal
def get_article_url(self, article):
link = article.get('link')
if 'audio' not in link:
return link

preprocess_regexps = [
(re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in
[
Expand Down

0 comments on commit c9945ac

Please sign in to comment.