mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-09 01:20:39 +01:00
IGN:...
This commit is contained in:
parent
8f8676d25a
commit
2055b3bdcc
2 changed files with 5 additions and 3 deletions
|
|
@ -16,9 +16,11 @@ class Economist(BasicNewsRecipe):
|
|||
language = 'en'
|
||||
|
||||
__author__ = "Kovid Goyal"
|
||||
description = 'Global news and current affairs from a European perspective'
|
||||
oldest_article = 7.0
|
||||
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'
|
||||
remove_tags = [dict(name=['script', 'noscript', 'title'])]
|
||||
remove_tags_before = dict(name=lambda tag: tag.name=='title' and tag.parent.name=='body')
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ def prepend_embedded_font(match):
|
|||
for bad, good in bad_map.items():
|
||||
if bad in match.group(1):
|
||||
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:
|
||||
with open(csspath, 'r+b') as f:
|
||||
|
|
|
|||
Loading…
Reference in a new issue