Commit 3e2b84af authored by Romain Goyet's avatar Romain Goyet

Silent logs from MediaLibraryKit

parent ebc1dde8
......@@ -7,7 +7,6 @@
#endif
#if TARGET_OS_IPHONE
// FIXME
#define HAVE_BLOCK 0
#define NSXMLDocument CXMLDocument
......@@ -18,4 +17,10 @@
#define HAVE_BLOCK 1
#endif
#if 0
#define MLLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define MLLog(format, ...)
#endif
#import "NSXMLNode_Additions.h"
......@@ -57,7 +57,7 @@
- (void)mediaDidFinishParsing:(VLCMedia *)media
{
NSLog(@"Parsed %@ - %d tracks", media, [[_media tracksInformation] count]);
MLLog(@"Parsed %@ - %d tracks", media, [[_media tracksInformation] count]);
if (_media.delegate != self)
return;
......
......@@ -24,8 +24,6 @@
#import <UIKit/UIKit.h>
#endif
#define MLLog(...) NSLog(__VA_ARGS__)
// Pref key
static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
......@@ -44,7 +42,7 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
static id sharedMediaLibrary = nil;
if (!sharedMediaLibrary) {
sharedMediaLibrary = [[[self class] alloc] init];
NSLog(@"Initializing db in %@", [sharedMediaLibrary databaseFolderPath]);
MLLog(@"Initializing db in %@", [sharedMediaLibrary databaseFolderPath]);
[sharedMediaLibrary updateDatabase];
}
return sharedMediaLibrary;
......@@ -603,7 +601,7 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
NSURL *fileURL = [NSURL URLWithString:urlString];
BOOL exists = [fileManager fileExistsAtPath:[fileURL path]];
if (!exists)
NSLog(@"Marking - %@", [fileURL absoluteString]);
MLLog(@"Marking - %@", [fileURL absoluteString]);
file.isOnDisk = [NSNumber numberWithBool:exists];
}
......
......@@ -77,9 +77,9 @@
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
{
NSLog(@"Did Fail %@", _delegate);
MLLog(@"Did Fail %@", _delegate);
if ([_delegate respondsToSelector:@selector(movieInfoGrabber:didFailWithError:)]) {
NSLog(@"Did Fail Calling %@", _delegate);
MLLog(@"Did Fail Calling %@", _delegate);
[_delegate movieInfoGrabber:self didFailWithError:error];
}
......@@ -130,8 +130,8 @@
}
//NSLog(@"%@", title);
//NSLog(TMDB_QUERY_INFO, TMDB_HOSTNAME, id, TMDB_API_KEY);
//MLLog(@"%@", title);
//MLLog(TMDB_QUERY_INFO, TMDB_HOSTNAME, id, TMDB_API_KEY);
NSString *artworkURL = [node stringValueForXPath:@"./poster[size='cover']"];
if (!artworkURL)
artworkURL = [node stringValueForXPath:@"./poster"];
......
......@@ -57,7 +57,7 @@
- (void)mediaThumbnailer:(VLCMediaThumbnailer *)mediaThumbnailer didFinishThumbnail:(CGImageRef)thumbnail
{
mediaThumbnailer.delegate = nil;
NSLog(@"Finished thumbnail for %@", self.file.title);
MLLog(@"Finished thumbnail for %@", self.file.title);
self.file.computedThumbnail = UIImagePNGRepresentation([UIImage imageWithCGImage:thumbnail]);
[[MLThumbnailerQueue sharedThumbnailerQueue] setSuspended:NO];
[self release];
......
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