Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a bug on identifying that a feed already exists.
Google ID for feeds is the string "feed/" followed by the URL of the feed.
Don't be fooled by URLs having "feed/" inside them (like most Wordpress feeds)...
  • Loading branch information
barijaona committed Feb 7, 2012
1 parent fb5cf85 commit 2f7de6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GoogleReader.m
Expand Up @@ -486,7 +486,7 @@ -(void)completeLoadSubscriptions {
{
LOG_EXPR(feed);
NSString * feedID = [feed objectForKey:@"id"];
NSString * feedURL = [feedID stringByReplacingOccurrencesOfString:@"feed/" withString:@""];
NSString * feedURL = [feedID stringByReplacingOccurrencesOfString:@"feed/" withString:@"" options:NULL range:NSMakeRange(0, 5)];

NSString * folderName = nil;

Expand Down

1 comment on commit 2f7de6f

@mstroeck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

Please sign in to comment.