mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f80e1b66a7
commit
d38b4d1cc5
@ -13,7 +13,7 @@ class GN(BasicNewsRecipe):
|
|||||||
EDITION = 0
|
EDITION = 0
|
||||||
|
|
||||||
__author__ = 'Piotr Kontek'
|
__author__ = 'Piotr Kontek'
|
||||||
title = unicode('Gość niedzielny')
|
title = u'Gość niedzielny'
|
||||||
description = 'Weekly magazine'
|
description = 'Weekly magazine'
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
|
@ -9,10 +9,10 @@ import re
|
|||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
class Pescanik(BasicNewsRecipe):
|
class Pescanik(BasicNewsRecipe):
|
||||||
title = 'Peščanik'
|
title = u'Peščanik'
|
||||||
__author__ = 'Darko Miletic'
|
__author__ = 'Darko Miletic'
|
||||||
description = 'Peščanik je udruženje građana osnovano 2006. godine. Glavni proizvod Peščanika je radio emisija koja je emitovana na Radiju B92 od 02.02.2000. do 16.06.2011, a od septembra 2011. se emituje na osam radio stanica u Srbiji, Crnoj Gori i BiH'
|
description = u'Peščanik je udruženje građana osnovano 2006. godine. Glavni proizvod Peščanika je radio emisija koja je emitovana na Radiju B92 od 02.02.2000. do 16.06.2011, a od septembra 2011. se emituje na osam radio stanica u Srbiji, Crnoj Gori i BiH'
|
||||||
publisher = 'Peščanik'
|
publisher = u'Peščanik'
|
||||||
category = 'news, politics, Serbia'
|
category = 'news, politics, Serbia'
|
||||||
oldest_article = 10
|
oldest_article = 10
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
@ -45,4 +45,4 @@ class Pescanik(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
return url + 'print/'
|
return url + 'print/'
|
||||||
|
@ -20,7 +20,11 @@ vipy.session.initialize(project_name='calibre', src_dir=src_dir,
|
|||||||
project_dir=project_dir, base_dir=project_dir)
|
project_dir=project_dir, base_dir=project_dir)
|
||||||
|
|
||||||
def recipe_title_callback(raw):
|
def recipe_title_callback(raw):
|
||||||
return eval(raw.decode('utf-8')).replace(' ', '_')
|
try:
|
||||||
|
return eval(raw.decode('utf-8')).replace(u' ', u'_')
|
||||||
|
except:
|
||||||
|
print ('Failed to decode recipe title: %r'%raw)
|
||||||
|
raise
|
||||||
|
|
||||||
vipy.session.add_content_browser('<leader>r', 'Recipe',
|
vipy.session.add_content_browser('<leader>r', 'Recipe',
|
||||||
vipy.session.glob_based_iterator(os.path.join(project_dir, 'recipes', '*.recipe')),
|
vipy.session.glob_based_iterator(os.path.join(project_dir, 'recipes', '*.recipe')),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user