]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
parse dilbert.com
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 25 Oct 2013 13:50:16 +0000 (15:50 +0200)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 25 Oct 2013 13:50:16 +0000 (15:50 +0200)
inc/3rdparty/simplepie/SimplePie/Misc.php
inc/3rdparty/site_config/custom/dilbert.com.txt [new file with mode: 0644]

index eabf2738e70800117fb3f999c4766fb753fc832d..17dbf963c873f2fe63b04ea2e1bd9c1348017aa7 100644 (file)
@@ -1613,6 +1613,7 @@ class SimplePie_Misc
                        case 'utf7':
                                return 'UTF-7';
 
+                       case 'utf8lias':
                        case 'utf8':
                                return 'UTF-8';
 
diff --git a/inc/3rdparty/site_config/custom/dilbert.com.txt b/inc/3rdparty/site_config/custom/dilbert.com.txt
new file mode 100644 (file)
index 0000000..6c8d95a
--- /dev/null
@@ -0,0 +1,4 @@
+title: //div[contains(@class, 'SB_Title')]//a
+body: //div[contains(@class, 'STR_Content')]
+
+test_url: http://dilbert.com/strips/comic/2013-10-22
\ No newline at end of file