mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1174167 ("What if" recipe doesn't work)
This commit is contained in:
parent
d081d38801
commit
acf8b1a12e
@ -13,7 +13,7 @@ class XkcdCom(BasicNewsRecipe):
|
|||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
oldest_article = 60
|
oldest_article = 60
|
||||||
# add image and text
|
# add image and text
|
||||||
# add an horizontal line after the question
|
# add an horizontal line after the question
|
||||||
preprocess_regexps = [
|
preprocess_regexps = [
|
||||||
(re.compile(r'(<img.*title=")([^"]+)(".*>)'),
|
(re.compile(r'(<img.*title=")([^"]+)(".*>)'),
|
||||||
lambda m: '<div>%s%s<p id="photo_text">(%s)</p></div>' % (m.group(1), m.group(3), m.group(2))),
|
lambda m: '<div>%s%s<p id="photo_text">(%s)</p></div>' % (m.group(1), m.group(3), m.group(2))),
|
||||||
@ -22,3 +22,6 @@ class XkcdCom(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
|
|
||||||
extra_css = "#photo_text{font-size:small;}"
|
extra_css = "#photo_text{font-size:small;}"
|
||||||
|
|
||||||
|
feeds = [(u'What If...', u'http://what-if.xkcd.com/feed.atom')]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user