Get larger Gocomic images.

This commit is contained in:
Bastian Kleineidam 2013-12-11 17:53:52 +01:00
parent b0bf47c0f4
commit f23aa86a2c
2 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,9 @@ Features:
Thanks to Null000 for the patches. Thanks to Null000 for the patches.
Closes: GH bug #48 Closes: GH bug #48
Fixes:
- comics: Get larger images from GoComics.
Dosage 2.8 (released 8.12.2013) Dosage 2.8 (released 8.12.2013)

View file

@ -7,7 +7,10 @@ from ..scraper import make_scraper
from ..util import tagre from ..util import tagre
from ..helpers import bounceStarter from ..helpers import bounceStarter
_imageSearch = compile(tagre("meta", "content", r'(http://assets\.amuniversal\.com/[0-9a-f]+)', before="og:image")) _imageSearch = (
compile(tagre("img", "src", r'(http://assets\.amuniversal\.com/[0-9a-f]+\?width=\d+)')),
compile(tagre("meta", "content", r'(http://assets\.amuniversal\.com/[0-9a-f]+)', before="og:image")),
)
_prevSearch = compile(tagre("a", "href", r'(/[^"]+/\d+/\d+/\d+)', after="prev")) _prevSearch = compile(tagre("a", "href", r'(/[^"]+/\d+/\d+/\d+)', after="prev"))
_nextSearch = compile(tagre("a", "href", r'(/[^"]+/\d+/\d+/\d+)', after="next")) _nextSearch = compile(tagre("a", "href", r'(/[^"]+/\d+/\d+/\d+)', after="next"))