diff --git a/resources/images/news/digitalspy_uk.png b/resources/images/news/digitalspy_uk.png new file mode 100644 index 0000000000..28c865713d Binary files /dev/null and b/resources/images/news/digitalspy_uk.png differ diff --git a/resources/recipes/digitalspy_uk.recipe b/resources/recipes/digitalspy_uk.recipe new file mode 100644 index 0000000000..ac54c3790d --- /dev/null +++ b/resources/recipes/digitalspy_uk.recipe @@ -0,0 +1,43 @@ + +__license__ = 'GPL v3' +__copyright__ = '2010, Darko Miletic ' +''' +www.digitalspy.co.uk +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class DigitalSpyUK(BasicNewsRecipe): + title = 'Digital Spy - UK Edition' + __author__ = 'Darko Miletic' + description = 'Entertainment news about the biggest TV shows, films and celebrities, updated around the clock.' + publisher = 'Digital Spy Limited.' + category = 'news, showbiz, big brother, x factor, torchwood, doctor who, tv, media, sky, freeview, cable' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'cp1252' + use_embedded_content = False + language = 'en_GB' + remove_empty_feeds = True + extra_css = ' body{font-family: Verdana,Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} .info{font-size: small} ' + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_tags = [dict(name=['link'])] + remove_attributes = ['height','width'] + keep_only_tags = [dict(name='div',attrs={'id':'article'})] + + feeds = [ + (u'News' , u'http://www.digitalspy.co.uk/rss/zones/gb/all.xml' ) + ,(u'Big Brother' , u'http://www.digitalspy.co.uk/rss/zones/gb/bigbrother.xml' ) + ,(u'Entertainment' , u'http://www.digitalspy.co.uk/rss/zones/gb/entertainment.xml') + ,(u'General' , u'http://www.digitalspy.co.uk/rss/zones/gb/general.xml' ) + ,(u'Media' , u'http://www.digitalspy.co.uk/rss/zones/gb/media.xml' ) + ] + diff --git a/src/calibre/gui2/dialogs/metadata_single.py b/src/calibre/gui2/dialogs/metadata_single.py index 78f30ecb21..8fab6a922a 100644 --- a/src/calibre/gui2/dialogs/metadata_single.py +++ b/src/calibre/gui2/dialogs/metadata_single.py @@ -598,7 +598,7 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog): if self.series.text() is None or self.series.text() == '': self.series.setText(book.series) if book.series_index is not None: - self.series_index.setValue(book.series_index) + self.series_index.setValue(book.series_index) else: error_dialog(self, _('Cannot fetch metadata'), _('You must specify at least one of ISBN, Title, '