mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
8f8676d25a
commit
2055b3bdcc
@ -16,9 +16,11 @@ class Economist(BasicNewsRecipe):
|
|||||||
language = 'en'
|
language = 'en'
|
||||||
|
|
||||||
__author__ = "Kovid Goyal"
|
__author__ = "Kovid Goyal"
|
||||||
description = 'Global news and current affairs from a European perspective'
|
|
||||||
oldest_article = 7.0
|
|
||||||
INDEX = 'http://www.economist.com/printedition'
|
INDEX = 'http://www.economist.com/printedition'
|
||||||
|
description = ('Global news and current affairs from a European perspective.'
|
||||||
|
' Needs a subscription from ')+INDEX
|
||||||
|
|
||||||
|
oldest_article = 7.0
|
||||||
cover_url = 'http://www.economist.com/images/covers/currentcovereu_large.jpg'
|
cover_url = 'http://www.economist.com/images/covers/currentcovereu_large.jpg'
|
||||||
remove_tags = [dict(name=['script', 'noscript', 'title'])]
|
remove_tags = [dict(name=['script', 'noscript', 'title'])]
|
||||||
remove_tags_before = dict(name=lambda tag: tag.name=='title' and tag.parent.name=='body')
|
remove_tags_before = dict(name=lambda tag: tag.name=='title' and tag.parent.name=='body')
|
||||||
|
@ -147,7 +147,7 @@ class EbookIterator(object):
|
|||||||
for bad, good in bad_map.items():
|
for bad, good in bad_map.items():
|
||||||
if bad in match.group(1):
|
if bad in match.group(1):
|
||||||
prints('Substituting font family: %s -> %s'%(bad, good))
|
prints('Substituting font family: %s -> %s'%(bad, good))
|
||||||
return 'font-family: %s;'%good
|
return match.group().replace(bad, '"%s"'%good)
|
||||||
|
|
||||||
for csspath in css_files:
|
for csspath in css_files:
|
||||||
with open(csspath, 'r+b') as f:
|
with open(csspath, 'r+b') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user