[plagger] patch to Plugin/CustomFeed/GoogleNews.pm
In order to process rss from news.google.com.tw, I’ve made the following tiny patch:
Index: lib/Plagger/Plugin/CustomFeed/GoogleNews.pm
===================================================================
— lib/Plagger/Plugin/CustomFeed/GoogleNews.pm (revision 1948)
+++ lib/Plagger/Plugin/CustomFeed/GoogleNews.pm (working copy)
@@ -18,7 +18,7 @@
sub handle {
my($self, $context, $args) = @_;
===================================================================
— lib/Plagger/Plugin/CustomFeed/GoogleNews.pm (revision 1948)
+++ lib/Plagger/Plugin/CustomFeed/GoogleNews.pm (working copy)
@@ -18,7 +18,7 @@
sub handle {
my($self, $context, $args) = @_;
- if ($args->{feed}->url =~ m!^http://news.google.(?:co.jp|com)/! && $args->{feed}->url !~ /output=(?:rss|atom)/) {
+ if ($args->{feed}->url =~ m!^http://news.google.(?:co.jp|com(?:.tw)?)/! && $args->{feed}->url !~ /output=(?:rss|atom)/) {
$self->aggregate($context, $args);
return 1;
}
maybe someone can commit it back….
Technorati Tags: plagger














