Fix gocomic image matcher

This commit is contained in:
Bastian Kleineidam 2013-12-12 22:54:03 +01:00
parent 799d3040f0
commit 5c5aa166c7

View file

@ -8,7 +8,7 @@ from ..util import tagre
from ..helpers import bounceStarter from ..helpers import bounceStarter
_imageSearch = ( _imageSearch = (
compile(tagre("img", "src", r'(http://assets\.amuniversal\.com/[0-9a-f]+\?width=\d+)')), compile(tagre("img", "src", r'(http://assets\.amuniversal\.com/[0-9a-f]+\?width=900)')),
compile(tagre("meta", "content", r'(http://assets\.amuniversal\.com/[0-9a-f]+)', before="og:image")), 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"))