mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1727917 [China Daily recipe broken](https://bugs.launchpad.net/calibre/+bug/1727917)
This commit is contained in:
parent
0b09e059c2
commit
f535aa7722
@ -1,5 +1,9 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim:fileencoding=utf-8
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010 - 2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||
__copyright__ = '2010 - 2017, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
www.chinadaily.com.cn
|
||||
'''
|
||||
@ -21,7 +25,8 @@ class Pagina12(BasicNewsRecipe):
|
||||
language = 'en_CN'
|
||||
remove_empty_feeds = True
|
||||
publication_type = 'newsportal'
|
||||
masthead_url = 'http://www.chinadaily.com.cn/15421.files/chinadailylogo_e_20100301.jpg'
|
||||
auto_cleanup = True
|
||||
masthead_url = 'http://www.chinadaily.com.cn/98103.files/logo.jpg'
|
||||
extra_css = """
|
||||
body{font-family: Arial,Helvetica,sans-serif }
|
||||
.titlebox{font-family: "Times New Roman",Times,serif}
|
||||
@ -29,13 +34,12 @@ class Pagina12(BasicNewsRecipe):
|
||||
"""
|
||||
|
||||
conversion_options = {
|
||||
'comment': description, 'tags': category, 'publisher': publisher, 'language': language
|
||||
'comment': description,
|
||||
'tags': category,
|
||||
'publisher': publisher,
|
||||
'language': language
|
||||
}
|
||||
|
||||
remove_tags = [dict(name=['object', 'embed', 'iframe', 'table'])]
|
||||
keep_only_tags = [
|
||||
dict(attrs={'class': ['titlebox', 'timebox', 'authorbox', 'cont-ins']})]
|
||||
|
||||
feeds = [
|
||||
|
||||
(u'China', u'http://www.chinadaily.com.cn/rss/china_rss.xml'),
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 631 B |
Loading…
x
Reference in New Issue
Block a user