Fix drunkduck comics.
This commit is contained in:
parent
3e6414e0e5
commit
1f282147dc
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ from ..scraper import make_scraper
|
||||||
from ..util import tagre, fetchUrl, getPageContent
|
from ..util import tagre, fetchUrl, getPageContent
|
||||||
|
|
||||||
# note: adding the compile() functions inside add() is a major performance hog
|
# note: adding the compile() functions inside add() is a major performance hog
|
||||||
_imageSearch = compile(tagre("img", "src", r'(http://media\.drunkduck\.com\.s3\.amazonaws\.com:80/[^"]+)', before="page-image"))
|
_imageSearch = compile(tagre("img", "src", r'(https://s3\.amazonaws\.com/media\.drunkduck\.com/[^"]+)', before="page-image"))
|
||||||
_linkSearch = tagre("a", "href", r'(/[^"]+/\d+/)')
|
_linkSearch = tagre("a", "href", r'(/[^"]+/\d+/)')
|
||||||
_prevSearch = compile(_linkSearch + tagre("img", "class", "arrow_prev"))
|
_prevSearch = compile(_linkSearch + tagre("img", "class", "arrow_prev"))
|
||||||
_nextSearch = compile(_linkSearch + tagre("img", "class", "arrow_next"))
|
_nextSearch = compile(_linkSearch + tagre("img", "class", "arrow_next"))
|
||||||
|
@ -15,7 +15,7 @@ _lastSearch = compile(_linkSearch + tagre("img", "class", "arrow_last"))
|
||||||
|
|
||||||
def add(name, path):
|
def add(name, path):
|
||||||
classname = 'DrunkDuck_%s' % name
|
classname = 'DrunkDuck_%s' % name
|
||||||
_url = 'http://www.drunkduck.com/%s/' % path
|
_url = 'http://www.theduckwebcomics.com/%s/' % path
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _namer(cls, imageUrl, pageUrl):
|
def _namer(cls, imageUrl, pageUrl):
|
||||||
|
|
Loading…
Reference in a new issue