Changeset 1854

Show
Ignore:
Timestamp:
11/25/06 18:01:51
Author:
miyagawa
Message:
  • Added media:category support in Namespace::MediaRSS, which is hacky to load only Flickr tags
  • Added Filter::FlickrGeotagged? to call Flickr API to get geo info from Flickr RSS/Atom feeds
  • Added Bundle::Geo. For now it loads Namespace::Geo and ::GeoRSS only
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/feature-geo/plagger/lib/Plagger/Plugin/Namespace/MediaRSS.pm

    r1769 r1854  
    3434    } 
    3535 
     36    if (my $category = $media->{$media_ns}->{category}) { 
     37        # XXX make this pluggable 
     38        if ($category->{scheme} && $category->{scheme} eq 'urn:flickr:tags') { 
     39            my @tags = split /\s+/, $category; 
     40            $args->{entry}->add_tag($_) for @tags; 
     41        } 
     42    } 
     43 
    3644    1; 
    3745}