Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Do getName processing in background for GetCurrentWebpage
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkypumpkin committed Oct 19, 2014
1 parent 1799ead commit 8233e88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GetCurrentWebpage.m
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ + (Programme *)getCurrentWebpage:(LogController *)logger
[newProg setValue:pid forKey:@"pid"];
if (newShowName) [newProg setShowName:newShowName];
[newProg getName];
newProg.status = @"Processing...";
[newProg performSelectorInBackground:@selector(getName) withObject:nil];
return newProg;
}
else if([url hasPrefix:@"http://www.bbc.co.uk/programmes/"])
Expand All @@ -217,7 +219,8 @@ + (Programme *)getCurrentWebpage:(LogController *)logger
Programme *newProg = [[Programme alloc] init];
[newProg setValue:pid forKey:@"pid"];
if (newShowName) [newProg setShowName:newShowName];
[newProg getName];
newProg.status = @"Processing...";
[newProg performSelectorInBackground:@selector(getName) withObject:nil];
return newProg;
}
else if ([url hasPrefix:@"http://www.bbc.co.uk/sport/olympics/2012/live-video/"])
Expand Down

0 comments on commit 8233e88

Please sign in to comment.