PubSub not downloading image enclosures automatically.
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=slsRjSpsnX8O1SuVrQgIMTqWS2hxY4xVFDv5YIEx43I=; b=k2Gj5htzvN4gdH9JKA3FAU8AmWXBX17RwYFn9TQcUcy+jWTfGv+ZTUTCB7An0+6kE1 lUDJ3tNOqbObKFKjvnXgajqdboC3dEdTi3E7J6IRudbknJSJzw7uvMuBTx3BvLjeOkrG vTh+shC0zcN8T6C5i/pnL8fzQFo+IFEUFB5MY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=adrPItAWc65o/DhQzHGdyHWo1tLmy0r3NiC0mVSmFjo24zbI8pjDsP1Ujp/SC0fBwY MzukZc9Bulq1m7YI3Agi/RnAKjOTc0Ua393hAfZ7hfD8KRRxrVWDclEdvYBmiy02/V1P cTas6ynR1/ZYpu9Kx+fmY/JCcXoBMOecZOg+E= PubSub does not seem to be downloading image enclosures automatically. I'm pretty sure it's not just that the delegate methods that aren't getting called, since I checked the PubSub sqlite DB and from what I could tell no files were downloaded. Any suggestions? Or is PubSub just broken... in which case I'd file a radar and write my own RSS parsing code... ick... Here's a codesample that seems to not be working. ----------- - (void)awakeFromNib { PSClient *client = [PSClient applicationClient]; PSFeedSettings *settings = client.settings; settings.downloadsEnclosures = YES; settings.enclosureTypes = [NSArray arrayWithObject:@"image/jpeg"]; settings.maxEnclosureSize = PSFeedSettingsUnlimitedSize; settings.refreshesInBackground = NO; client.settings = settings; client.delegate = self; PSFeed *feed = [client addFeedWithURL:[NSURL URLWithString:@"http://api.flickr.com/services/feeds/photos_public.gne?id=13058742@N00&lang=..."]]; [feed refresh:NULL]; } - (void)feed:(PSFeed *)feed didAddEntries:(NSArray *)entries { NSLog(@"%@ added entries %@", feed, entries); } - (void)enclosure:(PSEnclosure *)enclosure downloadStateDidChange:(PSEnclosureDownloadState)state { NSLog(@"%@ %d", enclosure, state); } ---------- When I run the code, I get the following output: ---------- 2008-09-27 15:42:26.434 PhotoRSS[92602:10b] PSFeed[<http://api.flickr.com/services/feeds/photos_public.gne?id=13058742@N00&lang=en-us&format=atom> 2/8] added entries ( PSEntry['Happy Birthday' 3166], PSEntry['OpenDoc ftw' 3157], PSEntry['Loot from Portland' 3159], PSEntry['Nerd mode engage!' 3158], PSEntry['Anne' 3170], PSEntry['Ready for Action' 3171], PSEntry['Hotel Monaco' 3155], PSEntry['Palin hates polar bears' 3172], PSEntry['Nice Hawaii license plate!' 3165], PSEntry['photo.jpg' 3163], PSEntry['KILL' 3164], PSEntry['WALL·E Rides ... Muni?' 3169], PSEntry['My new pixel rig' 3162], PSEntry['Aloha Shoyu is the best, don't pose' 3161], PSEntry['New glasses have arrived!' 3160], PSEntry['New Digs' 3168], PSEntry['L&Ls Loco Moco and Spam musubi' 3153], PSEntry['WTF hot sauce?' 3154], PSEntry['Inside Macintosh' 3156], PSEntry['CA$H' 3167] ) --------- -Colin _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com
participants (1)
-
Colin Barrett