Changes between Version 4 and Version 5 of FlickrIntegration


Ignore:
Timestamp:
Nov 20, 2006, 1:50:04 PM (18 years ago)
Author:
Oliver Beattie <oliver@…>
Comment:

Medium size now actually works... Flickr's URL documentation is showing - to denote nothing for medium-sized images...

Legend:

Unmodified
Added
Removed
Modified
  • FlickrIntegration

    v4 v5  
    135135       
    136136        if size == 'small_square':
    137                 size_char='s'
     137                size_char='_s'
    138138        elif size == 'thumb':
    139                 size_char='t'
     139                size_char='_t'
    140140        elif size == 'small':
    141                 size_char='m'
     141                size_char='_m'
    142142        elif size == 'medium':
    143                 size_char='-'
     143                size_char=''
    144144        elif size == 'large':
    145                 size_char='b'
     145                size_char='_b'
    146146        elif size == 'original':
    147                 size_char='o'
     147                size_char='_o'
    148148       
    149         return "%s/%s/%s_%s_%s.jpg" % (base_url, self.flickr_server, self.flickr_id, self.flickr_secret, size_char)
     149        return "%s/%s/%s_%s%s.jpg" % (base_url, self.flickr_server, self.flickr_id, self.flickr_secret, size_char)
    150150}}}
    151151
Back to Top