Commit f47f7700 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Felix Paul Kühne

Revert "Silent logs from MediaLibraryKit"

This reverts commit 3e2b84af.

Conflicts:
	Sources/MLMediaLibrary.m
	Sources/MLThumbnailerQueue.m
parent 83d8c929
......@@ -7,6 +7,7 @@
#endif
#if TARGET_OS_IPHONE
// FIXME
#define HAVE_BLOCK 0
#define NSXMLDocument CXMLDocument
......@@ -17,10 +18,4 @@
#define HAVE_BLOCK 1
#endif
#if 0
#define MLLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define MLLog(format, ...)
#endif
#import "NSXMLNode_Additions.h"
......@@ -62,7 +62,7 @@
- (void)mediaDidFinishParsing:(VLCMedia *)media
{
MLLog(@"Parsed %@ - %d tracks", media, [[_media tracksInformation] count]);
NSLog(@"Parsed %@ - %d tracks", media, [[_media tracksInformation] count]);
if (_media.delegate != self)
return;
......
......@@ -27,6 +27,8 @@
#import <UIKit/UIKit.h>
#endif
#define MLLog(...) NSLog(__VA_ARGS__)
// Pref key
static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
......@@ -45,7 +47,7 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
static id sharedMediaLibrary = nil;
if (!sharedMediaLibrary) {
sharedMediaLibrary = [[[self class] alloc] init];
MLLog(@"Initializing db in %@", [sharedMediaLibrary databaseFolderPath]);
NSLog(@"Initializing db in %@", [sharedMediaLibrary databaseFolderPath]);
// Also force to init the crash preventer
// Because it will correctly set up the parser and thumbnail queue
......@@ -626,7 +628,7 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
NSURL *fileURL = [NSURL URLWithString:urlString];
BOOL exists = [fileManager fileExistsAtPath:[fileURL path]];
if (!exists) {
MLLog(@"Marking - %@", [fileURL absoluteString]);
NSLog(@"Marking - %@", [fileURL absoluteString]);
file.isSafe = YES; // It doesn't exists, it's safe.
}
file.isOnDisk = [NSNumber numberWithBool:exists];
......
......@@ -77,9 +77,9 @@
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
{
MLLog(@"Did Fail %@", _delegate);
NSLog(@"Did Fail %@", _delegate);
if ([_delegate respondsToSelector:@selector(movieInfoGrabber:didFailWithError:)]) {
MLLog(@"Did Fail Calling %@", _delegate);
NSLog(@"Did Fail Calling %@", _delegate);
[_delegate movieInfoGrabber:self didFailWithError:error];
}
......@@ -130,8 +130,8 @@
}
//MLLog(@"%@", title);
//MLLog(TMDB_QUERY_INFO, TMDB_HOSTNAME, id, TMDB_API_KEY);
//NSLog(@"%@", title);
//NSLog(TMDB_QUERY_INFO, TMDB_HOSTNAME, id, TMDB_API_KEY);
NSString *artworkURL = [node stringValueForXPath:@"./poster[size='cover']"];
if (!artworkURL)
artworkURL = [node stringValueForXPath:@"./poster"];
......
......@@ -88,7 +88,7 @@
- (void)mediaThumbnailer:(VLCMediaThumbnailer *)mediaThumbnailer didFinishThumbnail:(CGImageRef)thumbnail
{
mediaThumbnailer.delegate = nil;
MLLog(@"Finished thumbnail for %@", self.file.title);
NSLog(@"Finished thumbnail for %@", self.file.title);
self.file.computedThumbnail = [UIImage imageWithCGImage:thumbnail];
[self endThumbnailing];
......
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