From 88224fe21a2c82cbc4f87c4945c278c6958711ad Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Fri, 15 Mar 2013 07:04:19 +0100 Subject: [PATCH] Add DogHouseDiaries, update changelog. --- doc/changelog.txt | 8 +++++--- dosagelib/plugins/d.py | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index dbd678946..19f06905a 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -3,13 +3,15 @@ Dosage 1.14 (released xx.xx.2013) Features: - comics: Added KeenSpot comic strips and enable ComicGenesis comic strips -- comics: Added CucumberQuest, DerFlix, FonFlatter, FullFrontalNerdity, - GeeksNextDoor, KickInTheHead, OrnerBoy, Ruthe. - Closes: GH bug #15 +- comics: Added CucumberQuest, DerFlix, DogHouseDiaries, FonFlatter, + FullFrontalNerdity, GeeksNextDoor, KickInTheHead, OrnerBoy, Ruthe. + Closes: GH bug #15, #19 Changes: - comics: The scraper can check a list of previous and image link regular expressions, not only a single one. +- comics: Continue searching for images if one image is not found. + Closes: GH bug #18 Dosage 1.13 (released 11.3.2013) diff --git a/dosagelib/plugins/d.py b/dosagelib/plugins/d.py index 0c47327d7..a0e8f162a 100644 --- a/dosagelib/plugins/d.py +++ b/dosagelib/plugins/d.py @@ -136,6 +136,14 @@ class DoemainOfOurOwn(_BasicScraper): help = 'Index format: yyyy-mm-dd' +class DogHouseDiaries(_BasicScraper): + url = 'http://thedoghousediaries.com/' + stripUrl = url + '%s' + prevSearch = compile(tagre("a", "href", r'(http://thedoghousediaries\.com/\d+)', after="previous-comic")) + imageSearch = compile(tagre("img", "src", r'(http://thedoghousediaries\.com/comics/[^"]+)')) + help = 'Index format: number' + + class DominicDeegan(_BasicScraper): url = 'http://www.dominic-deegan.com/' stripUrl = url + 'view.php?date=%s'