Commit f14d1cfb authored by Felix Paul Kühne's avatar Felix Paul Kühne

Add debug

parent 6fb5953b
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "MetaDataFetcherKit" s.name = "MetaDataFetcherKit"
s.version = "0.1.0" s.version = "0.1.1"
s.summary = "An ObjC library to fetch meta data for media content" s.summary = "An ObjC library to fetch meta data for media content"
s.homepage = "https://code.videolan.org/fkuehne/MetaDataFetcherKit" s.homepage = "https://code.videolan.org/fkuehne/MetaDataFetcherKit"
s.license = 'LGPL v2.1' s.license = 'LGPL v21'
s.author = { "Felix Paul Kühne" => "fkuehne@videolan.org" } s.author = { "Felix Paul Kühne" => "fkuehne@videolan.org" }
s.source = { :git => "https://code.videolan.org/fkuehne/MetaDataFetcherKit.git", :tag => s.version.to_s } s.source = { :git => "https://code.videolan.org/fkuehne/MetaDataFetcherKit.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/feepk' s.social_media_url = 'https://twitter.com/feepk'
......
...@@ -25,4 +25,9 @@ ...@@ -25,4 +25,9 @@
@implementation MDFMediaObject @implementation MDFMediaObject
- (NSString *)description
{
return [NSString stringWithFormat:@"%s: title %@, movie DB id %li, content %@", __PRETTY_FUNCTION__, self.title, self.movieDBID, self.contentDescription];
}
@end @end
...@@ -35,6 +35,15 @@ ...@@ -35,6 +35,15 @@
@implementation MDFMovieDBFetcher @implementation MDFMovieDBFetcher
- (NSString *)description
{
NSString *ret;
@synchronized(_requests) {
ret = [NSString stringWithFormat:@"%s: %lu pending requests", __PRETTY_FUNCTION__, _requests.count];
}
return ret;
}
- (void)cancelAllRequests - (void)cancelAllRequests
{ {
@synchronized(_requests) { @synchronized(_requests) {
......
...@@ -44,6 +44,11 @@ static NSString * const MovieDBBaseURLString = @"https://api.themoviedb.org/3/"; ...@@ -44,6 +44,11 @@ static NSString * const MovieDBBaseURLString = @"https://api.themoviedb.org/3/";
return _sharedClient; return _sharedClient;
} }
- (NSString *)description
{
return [NSString stringWithFormat:@"%s: fetched Properties: %i", __PRETTY_FUNCTION__, _hasFetchedProperties];
}
- (void)fetchProperties - (void)fetchProperties
{ {
if (!self.apiKey) if (!self.apiKey)
......
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