Fixed oglaf comic skipping.

This commit is contained in:
Bastian Kleineidam 2013-11-07 20:47:31 +01:00
parent 1f282147dc
commit 74cca6bac3
2 changed files with 12 additions and 3 deletions

View file

@ -3,7 +3,11 @@ Dosage 2.6 (released xx.xx.2013)
Features:
- comics: Added DarthsAndDroid
- docs: Document how to add new comics in docs/adding_new_comics.txt
Closes: GH bug 39
Closes: GH bug #39
Fixes:
- comics: Fixed Oglaf
Closes: GH bug #41
Dosage 2.5 (released 18.7.2013)

View file

@ -35,8 +35,13 @@ class Oglaf(_BasicScraper):
url = 'http://oglaf.com/'
stripUrl = url + '%s/'
imageSearch = compile(tagre("img", "src", r'(http://media\.oglaf\.com/comic/[^"]+)', before="strip"))
prevSearch = compile(tagre("a", "href", r'(/[^"]+)') + tagre("div", "id", "pvs?"))
help = 'Index format: stripname/nn'
prevSearch = (
# first search for "next page" URLs
compile(tagre("a", "href", r'(/[^"]+/\d+/)') + tagre("div", "id", "nx")),
# then for "prev story"
compile(tagre("a", "href", r'(/[^"]+)') + tagre("div", "id", "pvs?")),
)
help = 'Index format: stripname'
adult = True
@classmethod