mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Politika
This commit is contained in:
parent
95341e93c4
commit
48757f89c3
@ -1,5 +1,5 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008-2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||
__copyright__ = '2008-2013, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
politika.rs
|
||||
'''
|
||||
@ -20,7 +20,7 @@ class Politika(BasicNewsRecipe):
|
||||
delay = 1
|
||||
language = 'sr'
|
||||
publication_type = 'newspaper'
|
||||
masthead_url = 'http://static.politika.co.rs/images_new/politika.gif'
|
||||
masthead_url = 'http://static.politika.co.rs/images_new/politika2.gif'
|
||||
extra_css = """
|
||||
@font-face {font-family: "serif1";src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)}
|
||||
@font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)}
|
||||
@ -64,3 +64,11 @@ class Politika(BasicNewsRecipe):
|
||||
if item.has_key('title'):
|
||||
del item['title']
|
||||
return soup
|
||||
|
||||
def get_cover_url(self):
|
||||
soup = self.index_to_soup('http://www.politika.rs/')
|
||||
coverlink = soup.find('a', attrs={'class':'home_print_img'})
|
||||
if coverlink:
|
||||
return coverlink['href']
|
||||
return None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user