Skip to content

Commit

Permalink
Fix #32, feeds with no dates are correctly downloaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
victorpimentel committed Nov 12, 2011
1 parent df361f5 commit 5f0ed96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/TSParseXMLFeeds.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ + (NSArray *) parseEpisodesFromFeed:(NSString *)url maxItems:(int)maxItems
episodeDate = item.pubDate;
} else {
episodeDate = [NSDate dateWithTimeIntervalSinceNow:-3*60];
// Generate slightly different date for each episode based on episode season/number
episodeDate = [episodeDate addTimeInterval:60*[episodeSeason intValue] + [episodeNumber intValue]];
}

[Episode setValue:episodeTitle forKey:@"episodeName"];
Expand Down

0 comments on commit 5f0ed96

Please sign in to comment.