From 8233e884ba23d7986b3bcfe1ab65943f3dcadb3c Mon Sep 17 00:00:00 2001 From: dinkypumpkin Date: Sun, 19 Oct 2014 12:47:02 +0100 Subject: [PATCH] Do getName processing in background for GetCurrentWebpage --- GetCurrentWebpage.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GetCurrentWebpage.m b/GetCurrentWebpage.m index 4633143e..09682958 100644 --- a/GetCurrentWebpage.m +++ b/GetCurrentWebpage.m @@ -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/"]) @@ -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/"])