From d86442efedfe4135355d4e3b0603ee801abe3a95 Mon Sep 17 00:00:00 2001 From: Peter B Date: Thu, 30 Jan 2014 22:45:50 -0500 Subject: [PATCH] Added Oh Joy Sex Toy. --- dosagelib/plugins/o.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) mode change 100644 => 100755 dosagelib/plugins/o.py diff --git a/dosagelib/plugins/o.py b/dosagelib/plugins/o.py old mode 100644 new mode 100755 index 5f15d4581..eae186162 --- a/dosagelib/plugins/o.py +++ b/dosagelib/plugins/o.py @@ -52,6 +52,18 @@ class Oglaf(_BasicScraper): return cls.url +class OhJoySexToy(_BasicScraper): + url = 'http://www.ohjoysextoy.com/' + rurl = escape(url) + stripUrl = url + '%s/' + firstStripUrl = stripUrl % 'introduction' + imageSearch = compile(tagre("div", "class", r'comicpane') + "\s*.*\s*" + tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) + prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after='navi navi-prev')) + textSearch = compile(tagre("div", "class", r'comicpane') + "\s*.*\s*" + tagre("img", "alt", r'([^"]+)')) + help = 'Index Format: name' + adult = True + + class OkCancel(_BasicScraper): url = 'http://okcancel.com/' rurl = escape(url)