GetUnreadFeedItems(string feedUrl) trouble

Apr 19, 2010 at 7:35 PM
This method returns not all items in feed.
Apr 23, 2010 at 8:37 AM

Where do you encounter this problem? From looking at the code it should return all unread items from the given feed url (all meaning all fetched by Desktop Google Reader currently)

Apr 23, 2010 at 3:19 PM
This problem in programm too =( In, I see 200+ items in feed, but if I open Desktop Google Reader, only 26 items. I try use sourse code: var uFeeds = from feed in reader.GetUnreadFeeds() select new KeyValuePair<string,string>(feed.Title, feed.Url); KeyValuePair<string, string> [] feeds = uFeeds.ToArray(); var items = reader.GetUnreadFeedItems(feeds[numOfFeed].Value); foreach (var item in items) { Console.WriteLine(item.Title); Console.WriteLine(item.Summary + "\n"); } And not all items I see. Thanks for answers.
Apr 23, 2010 at 3:30 PM

Currently Desktop Google Reader only fetches the newest 100 feed items in sum regardless of there feed. So if 26 of this feed belong to the newest 100 you get those 26.  THis will change in 2.0 (which will take quite some more time as it will have much rewrite) but if your internet is fast enough you might consider trying to raise the 100 items limit which is in Reader.cs:


 public IEnumerable<UnreadItem> GetNewUnreadItems(Dictionary<string, string> oldUnreadItemIds)

            int topN = Math.Min(100,GetUnreadCount());

maybe you wanna try

int topN = GetUnreadCount()

instead which will fetch all unread items - as said some users had problems of timeout so added this brake

Apr 23, 2010 at 3:52 PM
It works exelent! Maybe add some code that load all items in background, when programm open, or show all item count? Thanks for this project!