Commit c4e61ec9 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Save a selector dispatch

parent ba07bd13
......@@ -52,7 +52,6 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
@interface MLMediaLibrary () <MLMovieInfoGrabberDelegate, MLTVShowEpisodesInfoGrabberDelegate, MLTVShowInfoGrabberDelegate>
#endif
- (NSManagedObjectContext *)managedObjectContext;
- (void)startUpdateDB;
- (NSString *)databaseFolderPath;
@end
......@@ -651,11 +650,6 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
#endif
- (void)updateMediaDatabase
{
[self startUpdateDB];
}
- (void)startUpdateDB
{
// Remove no more present files
NSFetchRequest *request = [self fetchRequestForEntity:@"File"];
......@@ -741,7 +735,7 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
[grabber fetchUpdatesSinceServerTime:lastServerTime];
#endif
/* Update every hour - FIXME: Preferences key */
[self performSelector:@selector(startUpdateDB) withObject:nil afterDelay:60 * 60];
[self performSelector:@selector(updateMediaDatabase) withObject:nil afterDelay:60 * 60];
}
- (void)applicationWillExit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment