Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added airdate property from TVRage
  • Loading branch information
stevestreza committed Feb 14, 2009
1 parent 9afafc8 commit 8b2569f
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 122 deletions.
Expand Up @@ -182,7 +182,9 @@ -(void)loadEpisodesForShow:(TCTVShow *)show{

TCTVEpisode *episode = [TCTVEpisode showVideoWithEpisodeName:title season:seasonNumber episodeNumber:episodeNumber show:show];

NSLog(@"Created episode %@ for: %@ - %i %i %@",episode, [show showName],seasonNumber,episodeNumber,title);
NSCalendarDate *airDate = [NSCalendarDate dateWithString:[[[episodeElement elementsForName:@"airdate"] objectAtIndex:0] stringValue]
calendarFormat:@"%Y-%m-%d"];
[episode setValue:airDate forKey:@"airDate"];
}
seasonCount += episodes.count;
}
Expand Down

0 comments on commit 8b2569f

Please sign in to comment.