From 725824f0675b147bf57583f437fceb101dc6a085 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 25 Apr 2013 21:23:31 +0200 Subject: [PATCH] Added TwoGuysAndGuy --- doc/changelog.txt | 2 +- dosagelib/plugins/t.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 42f13759d..946d6020f 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -2,7 +2,7 @@ Dosage 2.2 (released xx.xx.2013) Features: - comic: Added ARedTailsDream, Carciphona, Curtailed, GirlGenius, - Lackadaisy, SabrinaOnline, TheDreamlandChronicles. + Lackadaisy, SabrinaOnline, TheDreamlandChronicles, TwoGuysAndGuy. Patch by Dirk Reiners Changes: diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index 9adcfe36c..b4fc7d978 100644 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -209,3 +209,15 @@ class TracyAndTristan(_BasicScraper): imageSearch = compile(tagre("img", "src", r'(%simages/comics/[^"]+)' % rurl)) prevSearch = compile(tagre("a", "href", r'(/comics/\d+)', after="prev")) help = 'Index format: number' + + +class TwoGuysAndGuy(_BasicScraper): + description = u"Two Guys and Guy" + url = 'http://www.twogag.com/' + rurl = escape(url) + stripUrl = url + 'archives/%s' + firstStripUrl = stripUrl % '4' + imageSearch = compile(tagre('img', 'src', r'(%scomics/\d{4}-\d{2}-\d{2}[^"]*)' % rurl)) + prevSearch = compile(tagre('a', 'href', r'(%sarchives/\d+)' % rurl, after='title="Previous"')) + help = 'Index format: number' + adult = True