mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipe for Digital Spy UK by Darko Miletic
This commit is contained in:
parent
fd017b1931
commit
a0ea14b5e9
BIN
resources/images/news/digitalspy_uk.png
Normal file
BIN
resources/images/news/digitalspy_uk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
43
resources/recipes/digitalspy_uk.recipe
Normal file
43
resources/recipes/digitalspy_uk.recipe
Normal file
@ -0,0 +1,43 @@
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
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' )
|
||||
]
|
||||
|
@ -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, '
|
||||
|
Loading…
x
Reference in New Issue
Block a user