diff --git a/resources/images/news/dnevnik.png b/resources/images/news/dnevnik.png new file mode 100644 index 0000000000..a7e3da4595 Binary files /dev/null and b/resources/images/news/dnevnik.png differ diff --git a/resources/recipes/avto-magazin.recipe b/resources/recipes/avto-magazin.recipe index b88c6b6371..6464588acc 100644 --- a/resources/recipes/avto-magazin.recipe +++ b/resources/recipes/avto-magazin.recipe @@ -7,7 +7,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class Dnevnik(BasicNewsRecipe): title = u'Avto Magazin' __author__ = u'BlonG' - description = u"Za avtomobilistične frike, poznavalce in nedeljske šoferje." + description = u'Za avtomobilisti\xc4\x8dne frike, poznavalce in nedeljske \xc5\xa1oferje.' oldest_article = 7 max_articles_per_feed = 20 labguage = 'sl' diff --git a/resources/recipes/dnevnik.recipe b/resources/recipes/dnevnik.recipe new file mode 100644 index 0000000000..75610e2e8f --- /dev/null +++ b/resources/recipes/dnevnik.recipe @@ -0,0 +1,63 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, BlonG' +''' +dnevnik.si +''' +from calibre.web.feeds.news import BasicNewsRecipe +class Dnevnik(BasicNewsRecipe): + title = u'Dnevnik.si' + __author__ = u'BlonG' + description = u'''Dnevnik je \u010dasnik z ve\u010d kot polstoletno zgodovino. + Pod sloganom \xbb\u017divljenje ima besedo\xab na svojih straneh prina\u0161a + bralcem bogastvo informacij, komentarjev in kolumen in raznovrstnost + pogledov, zaznamovanih z odgovornostjo do posameznika in \u0161ir\u0161e + dru\u017ebe.''' + oldest_article = 3 + max_articles_per_feed = 20 + language = 'sl' + no_stylesheets = True + use_embedded_content = False + + cover_url = 'https://sites.google.com/site/javno2010/home/dnevnik_cover.jpg' + + extra_css = ''' + h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} + h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;} + p{font-family:Arial,Helvetica,sans-serif;font-size:small;} + body{font-family:Helvetica,Arial,sans-serif;font-size:small;} + ''' + + keep_only_tags = [ + dict(name='div', attrs={'id':'_iprom_inStream'}), + dict(name='div', attrs={'class':'entry-content'}), + ] + + remove_tags = [ + dict(name='div', attrs={'class':'fb_article_top'}), + dict(name='div', attrs={'class':'related'}), + dict(name='div', attrs={'class':'fb_article_foot'}), + dict(name='div', attrs={'class':'spreading'}), + dict(name='dl', attrs={'class':'ad'}), + dict(name='p', attrs={'class':'report'}), + dict(name='div', attrs={'class':'hfeed comments'}), + dict(name='dl', attrs={'id':'entryPanel'}), + dict(name='dl', attrs={'class':'infopush ip_wide'}), + dict(name='div', attrs={'class':'sidebar'}), + dict(name='dl', attrs={'class':'bottom'}), + dict(name='div', attrs={'id':'footer'}), + ] + + + feeds = [ + (u'Slovenija', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=13') + ,(u'Svet', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=14') + ,(u'EU', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=116') + ,(u'Poslovni dnevnik', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=5') + ,(u'Kronika', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=15') + ,(u'Kultura', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=17') + ,(u'Zdravje', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=18') + ,(u'Znanost in IT', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=19') + ,(u'(Ne)verjetno', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=20') + ,(u'E-strada', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=21') + ,(u'Svet vozil', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=22') + ] diff --git a/resources/recipes/mmc_rtv.recipe b/resources/recipes/mmc_rtv.recipe index 8b8bd66a06..a0d9adbe29 100644 --- a/resources/recipes/mmc_rtv.recipe +++ b/resources/recipes/mmc_rtv.recipe @@ -43,7 +43,7 @@ class MMCRTV(BasicNewsRecipe): (u'Svet', u'http://www.rtvslo.si/feeds/02.xml'), (u'Evropska unija', u'http://www.rtvslo.si/feeds/16.xml'), (u'Gospodarstvo', u'http://www.rtvslo.si/feeds/04.xml'), - (u'Črna kronika', u'http://www.rtvslo.si/feeds/08.xml'), + (u'\u010crna kronika', u'http://www.rtvslo.si/feeds/08.xml'), (u'Okolje', u'http://www.rtvslo.si/feeds/12.xml'), (u'Znanost in tehnologija', u'http://www.rtvslo.si/feeds/09.xml'), (u'Zabava', u'http://www.rtvslo.si/feeds/06.xml'),