[typo] flickr_sidebar plugin patch
Vincent Woo
blog at undefinedrange.com
Sun Jan 6 23:16:48 EST 2008
Hi,
In my Flickr RSS feed, the thumbnails are served from a farm3 server
that
the flickr_sidebar plugin won't recognize.
Example URL:
http://farm3.static.flickr.com/2183/2132950954_c0099cf7a2_m.jpg
My Flickr RSS feed:
id=95997527 at N00&lang=en-us&format=rss_200" target="_blank">http://api.flickr.com/services/feeds/photos_public.gne?id=95997527@N00&lang=en-us&format=rss_200
This seems to fix it for me.
Index: lib/flickr.rb
===================================================================
--- lib/flickr.rb (revision 1617)
+++ lib/flickr.rb (working copy)
@@ -35,7 +35,7 @@
end
def image
- description.scan( /(http:\/\/(farm1|farm2|static|photos).*?
\.jpg)/
).first.first
+ description.scan( /(http:\/\/(farm\d+|static|photos).*?\.jpg)/
).first.first
end
def thumb
image.gsub( /\_m\./, '_t.' )
More information about the Typo-list
mailing list