Fixed oglaf comic skipping.
This commit is contained in:
parent
1f282147dc
commit
74cca6bac3
2 changed files with 12 additions and 3 deletions
|
@ -3,7 +3,11 @@ Dosage 2.6 (released xx.xx.2013)
|
||||||
Features:
|
Features:
|
||||||
- comics: Added DarthsAndDroid
|
- comics: Added DarthsAndDroid
|
||||||
- docs: Document how to add new comics in docs/adding_new_comics.txt
|
- 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)
|
Dosage 2.5 (released 18.7.2013)
|
||||||
|
|
|
@ -35,8 +35,13 @@ class Oglaf(_BasicScraper):
|
||||||
url = 'http://oglaf.com/'
|
url = 'http://oglaf.com/'
|
||||||
stripUrl = url + '%s/'
|
stripUrl = url + '%s/'
|
||||||
imageSearch = compile(tagre("img", "src", r'(http://media\.oglaf\.com/comic/[^"]+)', before="strip"))
|
imageSearch = compile(tagre("img", "src", r'(http://media\.oglaf\.com/comic/[^"]+)', before="strip"))
|
||||||
prevSearch = compile(tagre("a", "href", r'(/[^"]+)') + tagre("div", "id", "pvs?"))
|
prevSearch = (
|
||||||
help = 'Index format: stripname/nn'
|
# 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
|
adult = True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue