diff --git a/doc/changelog.txt b/doc/changelog.txt index 33ce56a4e..b2b57b014 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,7 +1,7 @@ Dosage 2.4 (released xx.xx.2013) Features: -- comics: Added OnTheFasttrack. +- comics: Added LinuxComFridayFunnies and OnTheFasttrack. Dosage 2.3 (released 26.5.2013) diff --git a/dosagelib/plugins/l.py b/dosagelib/plugins/l.py index af332e283..81581d8fc 100644 --- a/dosagelib/plugins/l.py +++ b/dosagelib/plugins/l.py @@ -61,6 +61,16 @@ class Lint(_BasicScraper): help = 'Index format: yyyy/mm/dd/num-name' +class LinuxComFridayFunnies(_BasicScraper): + description = u"Linux.com: Friday Funnies" + url = 'https://www.linux.com/news/friday-funnies/' + stripUrl = url + '%s' + firstStripUrl = stripUrl % 'the-road-to-japan' + imageSearch = compile(tagre("img", "src", r'(/news/friday-funnies/episode/[^"]+\?format=image[^"]+)')) + prevSearch = compile(tagre("a", "href", r'(/news/friday-funnies/[^"]+)') + "Previous") + help = 'Index format: stripname' + + class LittleGamers(_BasicScraper): description = u'The comic everyone knows, but no one reads' url = 'http://www.little-gamers.com/' @@ -93,12 +103,3 @@ class LookingForGroup(_BasicScraper): compile(tagre("a", "href", r'(%spage/[-0-9]+/)' % rurl, after="feature-previous"))) nameSearch = compile(r'/page/([-0-9]+)/') help = 'Index format: nnn' - -class LinuxComFridayFunnies(_BasicScraper): - description = u"Linux.com: Friday Funnies" - url = 'https://www.linux.com/news/friday-funnies/' - stripUrl = url + '%s' - firstStripUrl = stripUrl % 'the-road-to-japan' - imageSearch = compile(r'Previous') - description = u'Friday Funnies on Linux.com'