Initial implementation of thetvdb json api.

This commit is contained in:
Damiano Galassi committed 2017-05-24 10:00:04 +02:00
1 parent 206ed00596
commit 964c171e1e
12 files changed
+384 -172

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.chapterdb.org/chapters/search?title=%@", [SBMetadataHelper urlEncoded:title]]];
NSDictionary *headerOptions = @{@"ApiKey" : API_KEY};
self.task = [SBMetadataHelper sessionTaskFromUrl:url HTTPMethod:@"GET" headerOptions:headerOptions cachePolicy:NSURLRequestUseProtocolCachePolicy completionHandler:^(NSData * _Nullable data) {
self.task = [SBMetadataHelper sessionTaskFromUrl:url HTTPMethod:@"GET" HTTPBody:nil headerOptions:headerOptions cachePolicy:NSURLRequestUseProtocolCachePolicy completionHandler:^(NSData * _Nullable data) {
NSXMLDocument *xml = [[NSXMLDocument alloc] initWithData:data
options:0
error:NULL];