[typo] flickr_sidebar plugin patch

Vincent Woo blog at undefinedrange.com
Mon Jan 7 00:52:09 EST 2008


I'm not sure how that text got mangled. In any case, I've created a  
new trac ticket for this issue. Sorry for any inconvenience.


On 6-Jan-08, at 8:16 PM, Vincent Woo wrote:

> 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.' )
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>
>



More information about the Typo-list mailing list