From c98800388eaf57c79768f1e8b86ce8fdd7e12a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Thu, 4 Jun 2015 19:24:55 +1200 Subject: [PATCH] added Sithrah --- dosagelib/plugins/wordpress.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/wordpress.py b/dosagelib/plugins/wordpress.py index e3e1c276f..26d881ec2 100644 --- a/dosagelib/plugins/wordpress.py +++ b/dosagelib/plugins/wordpress.py @@ -7,11 +7,14 @@ def add(name, url, firstUrl=None, starter=None, lang=None): attrs = dict( name=name, url=url, - imageSearch='//div[@id="comic"]//img', - prevSearch=['//a[contains(text(), " Prev")]', + imageSearch=['//div[@id="comic"]//img', + '//div[@class="webcomic-image"]//img'], + prevSearch=["//a[contains(concat(' ', text(), ' '), ' Prev ')]", + "//a[contains(concat(' ', text(), ' '), ' Previous ')]", "//a[contains(concat(' ', @class, ' '), ' navi-prev ')]", "//a[contains(concat(' ', @class, ' '), ' navi-prev-in ')]", - "//a[contains(concat(' ', @class, ' '), ' navi-previous ')]"] + "//a[contains(concat(' ', @class, ' '), ' navi-previous ')]", + "//a[contains(concat(' ', @class, ' '), ' previous-webcomic-link ')]"] ) if lang: attrs['lang'] = lang @@ -52,6 +55,7 @@ add('Nicky510', 'http://www.nickyitis.com/') add('OnTheEdge', 'http://ontheedgecomics.com/', 'comic/ote0001/') add('PandyLand', 'http://pandyland.net/', '1/') add('SailorsunOrg', 'http://sailorsun.org/') +add('Sithrah', 'http://sithrah.com/') add('SlightlyDamned', 'http://www.sdamned.com/') add('SPQRBlues', 'http://spqrblues.com/IV/') add('TheDreamlandChronicles', 'http://www.thedreamlandchronicles.com/')