Browse Source

Cosmetics

(cherry picked from commit 0223df2acf2a6d105b1982f257b0c0e0f6dfaa57)
Felix Paul Kühne 10 years ago
parent
commit
7789fb693d

+ 1 - 1
Sources/VLCBoxController.m

@@ -139,7 +139,7 @@
 
     BoxAPIJSONFailureBlock failure = ^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, NSDictionary *JSONDictionary)
     {
-        NSLog(@"there was an error getting the files but we don't show an error. this request is used to check if we need to refresh the token");
+        APLog(@"there was an error getting the files but we don't show an error. this request is used to check if we need to refresh the token");
     };
 
     [_operation cancel];

+ 2 - 5
Sources/VLCMigrationViewController.m

@@ -15,17 +15,14 @@
 @implementation VLCMigrationViewController
 
 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
-    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
-
-    }
-     return self;
+    return self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
 }
 
 - (void)viewDidLoad {
     [super viewDidLoad];
     [self.statusLabel setText:NSLocalizedString(@"UPGRADING_LIBRARY", "")];
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
-        NSLog(@"migrating coredata");
+        APLog(@"migrating coredata");
         [[MLMediaLibrary sharedMediaLibrary] migrateLibrary];
         dispatch_async(dispatch_get_main_queue(), ^{
             self.completionHandler();

+ 1 - 1
Sources/VLCPlexParser.m

@@ -101,7 +101,7 @@
     [xmlparser setDelegate:self];
 
     if (![xmlparser parse])
-        NSLog(@"PlexParser data Errors : %@", data);
+        APLog(@"PlexParser data Errors : %@", data);
 
     return _containerInfo;
 }

+ 2 - 2
Sources/VLCPlexWebAPI.m

@@ -103,7 +103,7 @@
 
     // for debug
     //NSString *debugStr = [[NSString alloc] initWithData:urlData encoding:NSUTF8StringEncoding];
-    //NSLog(@"data : %@", debugStr);
+    //APLog(@"data : %@", debugStr);
 
     return urlData;
 }
@@ -234,7 +234,7 @@
     [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
 
     if ([response statusCode] != 200)
-        NSLog(@"Plex stop Session %@ : %@", session, [response allHeaderFields]);
+        APLog(@"Plex stop Session %@ : %@", session, [response allHeaderFields]);
 }
 
 #pragma mark -