Changeset 1473

Show
Ignore:
Timestamp:
08/20/06 15:19:54
Author:
mizzy
Message:

CustomFeed?::Debug: support enclosure

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/CustomFeed/Debug.pm

    r430 r1473  
    3535        $entry->$_($entry_conf->{$_}) for keys %$entry_conf; 
    3636        $feed->add_entry($entry); 
     37 
     38        # enclosure 
     39        for my $enclosure_conf ( @{ $entry_conf->{enclosure} } ){ 
     40            my $enclosure = Plagger::Enclosure->new; 
     41            $enclosure->$_($enclosure_conf->{$_}) for keys %$enclosure_conf; 
     42            $entry->add_enclosure($enclosure); 
     43        } 
    3744    } 
    3845 
     
    6168          link: 'http://localhost/2' 
    6269          body: 'Good Bye! :P' 
     70          enclosure: 
     71            - url: http://localhost/debug.flv 
     72              filename: debug.flv 
     73              type: video/x-flv 
    6374 
    6475=head1 DESCRIPTION