diff --git a/doc/changelog.txt b/doc/changelog.txt index d021b4d67..da6ed029f 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -5,7 +5,7 @@ Features: comic strips - comics: Added CucumberQuest, DemolitionSquad, DerFlix, DogHouseDiaries, FonFlatter, FullFrontalNerdity, GeeksNextDoor, Katzenfuttergeleespritzer, - KickInTheHead, OrnerBoy, ParallelUniversum, Ruthe, SandraAndWooGerman. + KickInTheHead, MyCartoons, OrnerBoy, ParallelUniversum, Ruthe, SandraAndWooGerman. Closes: GH bug #15, #19 Changes: diff --git a/dosagelib/plugins/m.py b/dosagelib/plugins/m.py index 53c4f28ab..65a8b93a5 100644 --- a/dosagelib/plugins/m.py +++ b/dosagelib/plugins/m.py @@ -105,6 +105,18 @@ class Misfile(_BasicScraper): help = 'Index format: yyyy-mm-dd' +class MyCartoons(_BasicScraper): + url = 'http://mycartoons.de/' + stripUrl = url + 'page/%s' + imageSearch = ( + compile(tagre("img", "src", r'(http://mycartoons\.de/wp-content/cartoons/(?:[^"]+/)?\d+-\d+-\d+[^"]+)')), + compile(tagre("img", "src", r'(http://mycartoons\.de/cartoons/[^"]+/\d+-\d+-\d+[^"]+)')) + ) + prevSearch = compile(tagre("a", "href", r'(http://mycartoons\.de/page/[^"]+)') + "«") + help = 'Index format: number' + lang = 'de' + + class MysteriesOfTheArcana(_BasicScraper): url = 'http://mysteriesofthearcana.com/' stripUrl = url + 'index.php?action=comics&cid=%s'