From f0db185735054f6ca84d5eda9bd3c9ddc6601bf7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Jun 2009 07:36:47 -0700 Subject: [PATCH] New recipe for the Economic Tise India by Darko Miletic --- .../images/news/theeconomictimes_india.png | Bin 0 -> 529 bytes src/calibre/web/feeds/recipes/__init__.py | 1 + .../recipes/recipe_theeconomictimes_india.py | 56 ++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 src/calibre/gui2/images/news/theeconomictimes_india.png create mode 100644 src/calibre/web/feeds/recipes/recipe_theeconomictimes_india.py diff --git a/src/calibre/gui2/images/news/theeconomictimes_india.png b/src/calibre/gui2/images/news/theeconomictimes_india.png new file mode 100644 index 0000000000000000000000000000000000000000..ddd252d6b6f97556559c06564b8ec7ed83686d0b GIT binary patch literal 529 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*U87#OWQT^vI!PCuP&=)sgI(I&6la%A?or~F3K zuPj`;TazQFP?#@ggyM>?RE%ikKXh0$%5#d3A=e( zxfU)>|MUNSb>;o{kGXfo)}CR~(Y^G?oT=~i!yWg|?7q33F@kM{>HMARwh9zYx#K5v z_r*u64J+f{U9K=#d4+e%lmitTZ$wPq*v5Bq$C+hK~qf{YD=;|f8i&G64-u8X{t?Mz-K)wC8#X9$;_x{an*soS^kmVJiV?IIY z;evuE`;22>3m5JF_2XW}VVN7oue`EEO?3-m`gcFOoc?dEi@}Wx_B&eN|6rI 0) or (rurl.find('/quickiearticleshow/') > 0): + return None + return rurl + + def preprocess_html(self, soup): + soup.html['xml:lang'] = self.lang + soup.html['lang'] = self.lang + mlang = Tag(soup,'meta',[("http-equiv","Content-Language"),("content",self.lang)]) + mcharset = Tag(soup,'meta',[("http-equiv","Content-Type"),("content","text/html; charset=utf-8")]) + soup.head.insert(0,mlang) + soup.head.insert(1,mcharset) + return self.adeify_images(soup) + \ No newline at end of file