mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1058840 (Updated recipe for Twitch films)
This commit is contained in:
parent
0720d2ed74
commit
b4d4133c6d
@ -1,5 +1,5 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2009-2011, Darko Miletic <darko.miletic at gmail.com>'
|
||||
__copyright__ = '2009-2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
twitchfilm.net/news/
|
||||
'''
|
||||
@ -13,10 +13,8 @@ class Twitchfilm(BasicNewsRecipe):
|
||||
max_articles_per_feed = 100
|
||||
no_stylesheets = True
|
||||
use_embedded_content = False
|
||||
auto_cleanup = True
|
||||
encoding = 'utf-8'
|
||||
publisher = 'Twitch'
|
||||
masthead_url = 'http://twitchfilm.com/img/logo.png'
|
||||
category = 'twitch, twitchfilm, movie news, movie reviews, cult cinema, independent cinema, anime, foreign cinema, geek talk'
|
||||
language = 'en'
|
||||
|
||||
@ -27,12 +25,12 @@ class Twitchfilm(BasicNewsRecipe):
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
#keep_only_tags=[dict(attrs={'class':'asset-header'})]
|
||||
#remove_tags_after=dict(attrs={'class':'asset-body'})
|
||||
#remove_tags = [ dict(name='div', attrs={'class':['social','categories']})
|
||||
#, dict(attrs={'id':'main-asset'})
|
||||
#, dict(name=['meta','link','iframe','embed','object'])
|
||||
#]
|
||||
keep_only_tags=[dict(attrs={'class':'entry'})]
|
||||
remove_tags_after=dict(attrs={'class':'text'})
|
||||
remove_tags = [ dict(name='div', attrs={'class':['social','categories']})
|
||||
, dict(attrs={'id':'main-asset'})
|
||||
, dict(name=['meta','link','iframe','embed','object'])
|
||||
]
|
||||
|
||||
feeds = [(u'News', u'http://feeds.twitchfilm.net/TwitchEverything')]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user