diff --git a/recipes/czas_gentlemanow.recipe b/recipes/czas_gentlemanow.recipe index 672e2f77e1..c186bd55f8 100644 --- a/recipes/czas_gentlemanow.recipe +++ b/recipes/czas_gentlemanow.recipe @@ -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 diff --git a/recipes/gameplay_pl.recipe b/recipes/gameplay_pl.recipe index f45ca99840..952c6bb466 100644 --- a/recipes/gameplay_pl.recipe +++ b/recipes/gameplay_pl.recipe @@ -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): diff --git a/src/calibre/linux.py b/src/calibre/linux.py index c37c15ab0c..3929828438 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -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