Fork me on GitHub

iPhoto Photocasting

This plug in is for use with iPhoto Photocast listings.

This module will read and write photocast feeds "properly". Be advised, however, that an iPhoto photocast feed will not pass a FeedValidator test as they are not properly namespaced. If you are wanting to publish, rather than read, consider using the MediaRSS (modules) plug in instead. iPhoto will also read MediaRSS (modules) (Flickr Photostream) feeds as well.

Sample Usage

SyndFeed feed =  new File( "/foo.rss" ) ) );
List entries = feed.getEntries();
for( int i =0; i < entries.size() ; i++ ){
    System.out.println( ((SyndEntry)entries.get(i)).getModule( PhotocastModule.URI ) );

// or to create a photocast module:

SyndFeed myFeed = new SyndFeedImpl();
myFeed.getModules().add( new PhotocastModuleImpl() );
// you need this as a placeholder so the version gets in the feed.

SyndEntry myEntry = new SyndEntryImpl();
PhotocastModule pm = new PhotocastModuleImpl();
pm.setUrl( new URL("" ) );
pm.setThumnail( new URL("" ) );
pm.setCropDate( new Date() );
pm.setPhotoDate( new Date() );
pm.setMetaData( new PhotoDate(), "Some comments that I think always get ignored." );
myEntry.getModules().add( pm );



Initial move to the ROME project.