Changeset 123 for FlickrPublicPhotos

Show
Ignore:
Timestamp:
09/03/05 16:16:06 (3 years ago)
Author:
ogawa
Message:

Change img_url according to Flickr's changes.
Be compatible with MT3.2 plugin interface.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FlickrPublicPhotos/trunk/FlickrPublicPhotos.pl

    • Property svn:keywords set to Id
    r74 r123  
    11# A plugin for adding "FlickrPublicPhotos" container and related tags 
    22# 
    3 # Release 0.21 (June 6, 2005) 
     3# $Id$ 
    44# 
    55# This software is provided as-is. You may use it for commercial or  
     
    1010package MT::Plugin::FlickrPublicPhotos; 
    1111use strict; 
     12use vars qw($VERSION); 
     13 
     14$VERSION = '0.22'; 
    1215 
    1316my $plugin; 
    1417eval { 
    1518    require MT::Plugin; 
    16     $plugin = new MT::Plugin(); 
    17     $plugin->name("FlickrPublicPhotos Plugin"); 
    18     $plugin->description("Add FlickrPublicPhotos container and related tags. Version 0.21"); 
    19     $plugin->doc_link("http://as-is.net/hacks/2005/05/flickrpublicphotos_plugin.html"); 
     19    $plugin = new MT::Plugin({ 
     20        name => 'FlickrPublicPhotos', 
     21        description => 'Add FlickrPublicPhotos container and related tags.', 
     22        doc_link => 'http://as-is.net/hacks/2005/05/flickrpublicphotos_plugin.html', 
     23        author_name => 'Hirotaka Ogawa', 
     24        author_link => 'http://profile.typekey.com/ogawa/', 
     25        version => $VERSION 
     26        }); 
    2027    MT->add_plugin($plugin); 
    2128}; 
     
    210217    my ($size) = @_; 
    211218    $size = $sizes{(lc $size) || 't'}; 
    212     my $url = 'http://photos' . $this->{server} . '.flickr.com/' . $this->{id} . '_' . $this->{secret} . $size . '.jpg'; 
     219    my $url = 'http://static.flickr.com/' . $this->{server} . '/' . $this->{id} . '_' . $this->{secret} . $size . '.jpg'; 
    213220    $url; 
    214221}