mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
pep8
This commit is contained in:
parent
fe066ce2d6
commit
481013d23f
@ -1,5 +1,4 @@
|
||||
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai
|
||||
import re
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
|
@ -16,8 +16,12 @@ class Gameplay_pl(BasicNewsRecipe):
|
||||
no_stylesheets = True
|
||||
keep_only_tags = [dict(
|
||||
name='div', attrs={'class':'news-container'})]
|
||||
remove_tags = [dict(name='div', attrs={'class': ['galeria', 'noedit center im', 'news_list', 'news_list_autor', 'stop_bot', 'tagi', 'news_tagi', 'social-16']}), dict(
|
||||
attrs={'usemap': '#map'}), dict(name='a', attrs={'class': ['pin-it-button', 'twitter-share-button']})]
|
||||
remove_tags = [
|
||||
dict(name='div', attrs={'class': [
|
||||
'galeria', 'noedit center im', 'news_list', 'news_list_autor', 'stop_bot', 'tagi', 'news_tagi', 'social-16']}),
|
||||
dict(attrs={'usemap': '#map'}),
|
||||
dict(name='a', attrs={'class': ['pin-it-button', 'twitter-share-button']})
|
||||
]
|
||||
feeds = [(u'Wiadomo\u015bci', u'https://gameplay.pl/rss/')]
|
||||
|
||||
def image_url_processor(self, baseurl, url):
|
||||
|
@ -998,7 +998,7 @@ def opts_and_exts(name, op, exts, cover_opts=('--cover',), opf_opts=(),
|
||||
extras.append(special_exts_template%(opt, eexts))
|
||||
extras = '\n'.join(extras)
|
||||
|
||||
return ('_'+fname+'()'+\
|
||||
return ('_'+fname+'()'+
|
||||
'''
|
||||
{
|
||||
local cur prev opts
|
||||
|
Loading…
x
Reference in New Issue
Block a user