From a86cb47480ec34e698900a13845f602d960da441 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Aug 2014 20:56:46 +0530 Subject: [PATCH] The Hollywood Reporter by Darko Miletic --- recipes/hollywood_reporter.recipe | 56 +++++++++++++++++++++++++++ recipes/icons/hollywood_reporter.png | Bin 0 -> 618 bytes 2 files changed, 56 insertions(+) create mode 100644 recipes/hollywood_reporter.recipe create mode 100644 recipes/icons/hollywood_reporter.png diff --git a/recipes/hollywood_reporter.recipe b/recipes/hollywood_reporter.recipe new file mode 100644 index 0000000000..98099568aa --- /dev/null +++ b/recipes/hollywood_reporter.recipe @@ -0,0 +1,56 @@ +__license__ = 'GPL v3' +__copyright__ = '2014, Darko Miletic ' +''' +www.hollywoodreporter.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class THR_En(BasicNewsRecipe): + title = 'The Hollywood Reporter' + __author__ = 'Darko Miletic' + description = 'Read about the latest in Hollywood and entertainment news from The Hollywood Reporter, your source for detailed movie reviews, celebrity styles, and industry blogs.' + publisher = 'The Hollywood Reporter' + category = 'Entertainment news, Hollywood news, celebrity news, latest Hollywood news' + oldest_article = 2 + max_articles_per_feed = 200 + no_stylesheets = True + encoding = 'utf8' + use_embedded_content = False + language = 'en' + remove_empty_feeds = True + publication_type = 'newsportal' + auto_cleanup = True + auto_cleanup_keep = "//div[contains(concat(' ', normalize-space(@class), ' '), ' image ')]" + + extra_css = """ + body{font-family: Georgia,Times,serif} + h1,h2,h3{font-family: "Vonness-Bold-Compressed",Helvetica,sans-serif} + .credit,.caption{font-family: Arial,sans-serif;} + .credit,.caption,.submitted{font-size: small; color: gray;} + .main_media_credit{clear: left; font-size: x-small; text-align: right; color: gray;} + img{margin-top: 0.5em; margin-bottom: 0.4em; display:block} + """ + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + feeds = [ + (u'Movies' , u'http://feeds.feedburner.com/thr/film' ) + ,(u'TV' , u'http://feeds.feedburner.com/thr/television' ) + ,(u'Style&Culture' , u'http://feeds.feedburner.com/thr/style' ) + ,(u'International' , u'http://feeds.feedburner.com/thr/international' ) + ,(u'Music' , u'http://feeds.feedburner.com/thr/music' ) + ,(u'Tech' , u'http://feeds.feedburner.com/TheHollywoodReporter-Technology') + ,(u'Awards' , u'http://feeds.feedburner.com/thr/awards' ) + ,(u'Business' , u'http://feeds.feedburner.com/thr/business' ) + ,(u'Asia' , u'http://feeds.feedburner.com/HollywoodReporterAsia' ) + ,(u'Guilds and Labor', u'http://feeds.feedburner.com/thr/labor' ) + ,(u'Box Office' , u'http://feeds.feedburner.com/thr/boxoffice' ) + ,(u'Real Estate' , u'http://feeds.feedburner.com/thr/RealEstate' ) + ,(u'Politics' , u'http://feeds.feedburner.com/thr/politics' ) + ] diff --git a/recipes/icons/hollywood_reporter.png b/recipes/icons/hollywood_reporter.png new file mode 100644 index 0000000000000000000000000000000000000000..eef3d8bac3a86727a9a7478ae8053c8e72bfe325 GIT binary patch literal 618 zcmV-w0+s!VP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf0sl!vK~y+Tt&rVI zlVKRfAGi6YWv~}!9(B+`4-jzbdqg@K8^-T4mucU?yHum zl@+mSA6CRX5sTJI6rN1zB#4gU*Yoa!1`$N|z>n*?@B4c02OjaV!N6Mh9}D!-{5xV{ zgMqamvKwnj8w44>ASFtg)|IIdWY_CRNlnXsMybk3uiX_%8O%G6@v66%kDeiNr`^0i zb&_1SlMh}mkF6%&ojc2t+f8cc4nF&Qyy@@b_3mA~P-+m*>J(-J0iv54`3_u>FHDbI z;@jJ0#tt4}TGraR>S!moe;@hP0)cXGLaKNw2b%esOcEI!0+ZIbH(ACLO&v90z z*Dn27Sz*TGA%E>UW6o~o6$LTZ)Iy@X(JOUMXW-L#kO!dgPGa1>`6$jcGX)tn6rxg7KZBZmnVsw;Pd49v9a(8npBGG2& zzTZd4<>J;lBlCw26CEDrX6JUEoRGbN^GtShG3&id=*Ur~boI>ixESBFmpd&gB5ZA! zA7~}sq!LjbgiTwB8D(v;6K=K0Zr)0`&4HM-ZDTEnpxhW#J0zM` zQ|W11;rE&Fn{D{bszlSj^}i5jnoazf)-n}etr{kN0`zGK!K{x0ng9R*07*qoM6N<$ Ef`p?LAOHXW literal 0 HcmV?d00001