diff --git a/recipes/kommersant.recipe b/recipes/kommersant.recipe index 09fb8f8ad8..390ae7d1bd 100644 --- a/recipes/kommersant.recipe +++ b/recipes/kommersant.recipe @@ -1,5 +1,5 @@ __license__ = 'GPL v3' -__copyright__ = '2010-2011, Darko Miletic ' +__copyright__ = '2010-2013, Darko Miletic ' ''' www.kommersant.ru ''' @@ -29,17 +29,20 @@ class Kommersant_ru(BasicNewsRecipe): """ conversion_options = { - 'comment' : description - , 'tags' : category - , 'publisher' : publisher - , 'language' : language + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language } keep_only_tags = [dict(attrs={'class':['document','document_vvodka','document_text','document_authors vblock']})] remove_tags = [dict(name=['iframe','object','link','img','base','meta'])] - feeds = [(u'Articles', u'http://feeds.kommersant.ru/RSS_Export/RU/daily.xml')] - + feeds = [(u'Articles', u'http://dynamic.feedsportal.com/pf/438800/http://feeds.kommersant.ru/RSS_Export/RU/daily.xml')] + + def get_article_url(self, article): + return article.get('guid', None) + def print_version(self, url): return url.replace('/doc-rss/','/Doc/') + '/Print' \ No newline at end of file