From a0ea14b5e9bf23d538339f0ca8c0eeb8b4bb1ab3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 4 Feb 2010 08:44:29 -0700 Subject: [PATCH] New recipe for Digital Spy UK by Darko Miletic --- resources/images/news/digitalspy_uk.png | Bin 0 -> 1290 bytes resources/recipes/digitalspy_uk.recipe | 43 ++++++++++++++++++++ src/calibre/gui2/dialogs/metadata_single.py | 2 +- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 resources/images/news/digitalspy_uk.png create mode 100644 resources/recipes/digitalspy_uk.recipe diff --git a/resources/images/news/digitalspy_uk.png b/resources/images/news/digitalspy_uk.png new file mode 100644 index 0000000000000000000000000000000000000000..28c865713d5214505a620d111291e051462cef11 GIT binary patch literal 1290 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgfc0~o*h{3C&ZfyLO<#WAGf*4x>(Iky}n+U|!;J;g9(t%A~3 z?v*pUVmeEjjs~%@MTza&5~<|s6}2+*QkPcn(vC9EB`cr~*=O{*E?6Puvaw zI9i(-HyB^!zAwvncj2eUZ_Zq;t$JLjgW9DFIu9)TBc-~H;`a;su zw@!X2w0mCo32<*51g!J<-)*W`~ko_l_ix z_GA`RH&-?$=dE%>mCude4dAvv^d3zO0 z;3VDk->xvE?fiX&Tk8}FMA(U%x*Jn`10er)Y^%X_CCHVZ72PX zVhXsKxhv_9MyjUxhRvs{Vy~-7N^LXqWns7^yo^2Ful;HAZSe(x%YS!Q>;Zaag16(8 z6q)&RoGky>zWnj=q~^KvrryC2Wyk((zUh76_9^R`knAmb zYoC3LI3lpg|F}}e@pnzi|Y$SV*dP(yqWpvsgqc1%&9NGBKvl( zkgclXx-k)G&;2{<*SM>)+lAR3!e6uBtxDuPpmFN)bH32BH>ZRc>`q5n{&ia7`f_=5 z-n#IG0(TQ68744I`1xqf)8z_h4P6-gepSYX#qBj@Q0Vor5j(iN-}Tk1!db}yai@iQ z%Y___1YKW#y>r2~_g=-J2W+k@eM=Nix`+USK|jb}XiegRveoX)3q_0gb!{^j1~gP1 z`Ra2~#9{5lrbT@EHZi4(L)Jh2?ySB3srxSRoAYz;EwaoMiMns_D{Hs3@|IU6=Xox$ zGZ$E>zP)~}tTtoep-jzHZQI{}=egi}_ra%C20|R74;e%sCagKuJ*nrp_teI3GoCSZ ztxBv6b;wNZiwIme73BRJ>V11IJ6;6F<-XAVj`uu17yqPt)L*o``MHW`?ZrhZ&Qor! zxEdYuyK=qQrWyKn+fvuW3A`<-U#NL9L~k0`0hR2e$%^s~{0G<{Fn?hD!BE3s#~^<| z;4kashm)EZvkG&8<%nvDYeY#(Vo9o1a#1RfVlXl=G|)9L(lsy%F|e>QF|slSa?Py_ t3_f1kse_^+H$NpatrA&-p@Efwp_PFJM8iVfO?^NO44$rjF6*2UngF(GL9ze< literal 0 HcmV?d00001 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, '