From 763f9b02a297f08b7639fb3d08c9fcce6054b792 Mon Sep 17 00:00:00 2001 From: Luc Fouin Date: Wed, 2 Jul 2014 17:11:33 +0200 Subject: [PATCH 1/2] added the thin H line --- dosagelib/plugins/t.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index 52c451692..3e02ae797 100755 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -210,6 +210,18 @@ class TheOuterQuarter(_BasicScraper): help = 'Index format: nnn' +class TheThinHLine(_BasicScraper): + description = u'the thin H line. Proudly mediocre. NSFW.' + url = 'http://thinhline.tumblr.com/' + rurl = escape(url) + stripUrl = url + 'post/%s' + firstStripUrl = stripUrl % '3517345105' + imageSearch = compile(tagre('a', 'href', '%simage[^"]+' % url) + tagre('img', 'src', '([^"]+media.tumblr.com/[^"]+)')) + prevSearch = compile(r'>') + starter = indirectStarter(url, compile(r' Date: Wed, 2 Jul 2014 17:14:33 +0200 Subject: [PATCH 2/2] added the thin H line, fixes #67 --- dosagelib/plugins/t.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index 3e02ae797..a23bc454f 100755 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -213,7 +213,6 @@ class TheOuterQuarter(_BasicScraper): class TheThinHLine(_BasicScraper): description = u'the thin H line. Proudly mediocre. NSFW.' url = 'http://thinhline.tumblr.com/' - rurl = escape(url) stripUrl = url + 'post/%s' firstStripUrl = stripUrl % '3517345105' imageSearch = compile(tagre('a', 'href', '%simage[^"]+' % url) + tagre('img', 'src', '([^"]+media.tumblr.com/[^"]+)'))