From ebbddfe46496545b113cdeea7200b5495c5c0945 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 15 Feb 2012 22:35:53 +0530 Subject: [PATCH] Asian Review of Books by Darko Miletic. Fixes #932846 (new recipe for Asian review of books magazine) --- recipes/asianreviewofbooks.recipe | 51 +++++++++++++++++++++++++++ recipes/icons/asianreviewofbooks.png | Bin 0 -> 906 bytes src/calibre/utils/localization.py | 1 + 3 files changed, 52 insertions(+) create mode 100644 recipes/asianreviewofbooks.recipe create mode 100644 recipes/icons/asianreviewofbooks.png diff --git a/recipes/asianreviewofbooks.recipe b/recipes/asianreviewofbooks.recipe new file mode 100644 index 0000000000..f0912d8d98 --- /dev/null +++ b/recipes/asianreviewofbooks.recipe @@ -0,0 +1,51 @@ + +__license__ = 'GPL v3' +__copyright__ = '2012, Darko Miletic ' +''' +www.asianreviewofbooks.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class AsianReviewOfBooks(BasicNewsRecipe): + title = 'The Asian Review of Books' + __author__ = 'Darko Miletic' + description = 'In addition to reviewing books about or of relevance to Asia, the Asian Review of Books also features long-format essays by leading Asian writers and thinkers, to providing an unparalleled forum for discussion of key contemporary issues by Asians for Asia and a vehicle of intellectual depth and breadth where leading thinkers can write on the books, arts and ideas of the day. Widely quoted and referenced, with an archive of more than one thousand book reviews, it is the only web resource dedicated to Asian books. And now, with the addition of the new premium content, the Asian Review of Books, is a must-read publication.' + publisher = 'The Asian Review of Books' + category = 'literature, books, reviews, Asia' + oldest_article = 30 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'cp1252' + language = 'en_HK' + publication_type = 'magazine' + masthead_url = 'http://www.asianreviewofbooks.com/new/images/mob_arb.png' + extra_css = """ + body{font-family: serif} + .big {font-size: xx-large} + .bold {font-weight: bold} + .italic {font-style: italic} + .small {font-size: small} + img {display: block} + """ + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + + remove_tags = [dict(name=['object','script','iframe','embed'])] + remove_attributes = ['style', 'onclick'] + feeds = [(u'Articles' , u'http://www.asianreviewofbooks.com/new/rss.php')] + + def print_version(self, url): + root, sep, artid = url.rpartition('?ID=') + return root + 'getarticle.php?articleID=' + artid + '&stats=web' + + def preprocess_raw_html(self, raw, url): + return 'title' + raw + '' + \ No newline at end of file diff --git a/recipes/icons/asianreviewofbooks.png b/recipes/icons/asianreviewofbooks.png new file mode 100644 index 0000000000000000000000000000000000000000..31f6d42ce0d1206be6d1203340d798b43f541186 GIT binary patch literal 906 zcmV;519kj~P)$F;_l+q=+s4{MMa@SDTXO+u5Dh+Uf1o{ zN4-Zyr$unea4)YfUA$dIq(zX{kksnbMW{uA!+}GRLp7o`M!QBZu`n)_E_t|lTbWza z?b9r+EcE*HN|s7<%yUDNLwUVU5n zaVUT&darsamnz=x-h#w}DTpaYzenrz>s`BDDTFD4#ezhbL@T2!M3Y1)dniPlL`J$s zD1j&|rz>~LcSfs5My^IHoGV0?L`AMeMz2Oyrd52rd`7%RD1s;}hbvB(PDZ^(y5YGi zohwA1L_VfID10a=e<&-SD@2_{Ly<#rxpFF!Dn_(MLybdux_Q*=)JMKYDv>HEdMHM* zM(FnFpwys$%YRm*RyU?MSejTZr7bI(Dkym+ToG@Z&&moJa@P1+j6gallRw0qM$#h$jr+rCCh|sSbi{8AphQ z3;J%PDgj#l^&lE