From f11110a244613588c179ba206577dfa50551dcd4 Mon Sep 17 00:00:00 2001 From: dinkypumpkin Date: Sun, 19 Oct 2014 14:08:24 +0100 Subject: [PATCH] Removed async getName calls in GetCurrentWebpage No need for this with Programme.getNameSynchronous in download loop. Can still run "Process PID" to check before downloading --- GetCurrentWebpage.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GetCurrentWebpage.m b/GetCurrentWebpage.m index f32fb2bd..4e1864c1 100644 --- a/GetCurrentWebpage.m +++ b/GetCurrentWebpage.m @@ -191,8 +191,8 @@ + (Programme *)getCurrentWebpage:(LogController *)logger Programme *newProg = [[Programme alloc] initWithLogController:logger]; [newProg setValue:pid forKey:@"pid"]; if (newShowName) [newProg setShowName:newShowName]; - newProg.status = @"Processing..."; - [newProg performSelectorInBackground:@selector(getName) withObject:nil]; +// newProg.status = @"Processing..."; +// [newProg performSelectorInBackground:@selector(getName) withObject:nil]; return newProg; } else if([url hasPrefix:@"http://www.bbc.co.uk/programmes/"]) @@ -218,8 +218,8 @@ + (Programme *)getCurrentWebpage:(LogController *)logger Programme *newProg = [[Programme alloc] init]; [newProg setValue:pid forKey:@"pid"]; if (newShowName) [newProg setShowName:newShowName]; - newProg.status = @"Processing..."; - [newProg performSelectorInBackground:@selector(getName) withObject:nil]; +// 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/"])