From 40f2aed8f085199345756bba6844aba79ac5a7c6 Mon Sep 17 00:00:00 2001 From: Sven Hartge Date: Sat, 20 Apr 2013 18:51:06 +0200 Subject: [PATCH 1/2] Add Sandra on the Rocks. --- dosagelib/plugins/s.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index d6d788b6f..b378f7396 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -52,6 +52,13 @@ class SandraAndWooGerman(_BasicScraper): help = 'Index format: yyyy/mm/dd/number-stripname' lang = 'de' +class SandraOnTheRocks(_BasicScraper): + url = 'http://www.sandraontherocks.com/' + stripUrl = url + 'strips-sotra/%s' + firstStripUrl = stripUrl % 'start_by_running' + imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]+)')) + prevSearch = compile(tagre("a", "href", r'([^"]*/strips-sotra/[^"]+)', before="cn[id]prev")) + help = 'Index format: name' class ScaryGoRound(_BasicScraper): url = 'http://www.scarygoround.com/' From 8e34239b277af9d82ff9d1b6e1534e9e03a46a7c Mon Sep 17 00:00:00 2001 From: Sven Hartge Date: Sat, 20 Apr 2013 19:59:01 +0200 Subject: [PATCH 2/2] Fix typo in regex for SandraOnTheRocks. --- dosagelib/plugins/s.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index b378f7396..953cd0698 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -54,10 +54,10 @@ class SandraAndWooGerman(_BasicScraper): class SandraOnTheRocks(_BasicScraper): url = 'http://www.sandraontherocks.com/' - stripUrl = url + 'strips-sotra/%s' + stripUrl = url + 'strips-sotr/%s' firstStripUrl = stripUrl % 'start_by_running' imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'([^"]*/strips-sotra/[^"]+)', before="cn[id]prev")) + prevSearch = compile(tagre("a", "href", r'([^"]*/strips-sotr/[^"]+)', before="cn[id]prev")) help = 'Index format: name' class ScaryGoRound(_BasicScraper):