Convert the TheMovieDB metadata importer to swift.

This commit is contained in:
Damiano Galassi committed 2017-06-27 19:00:25 +02:00
1 parent e37448d773
commit 31f4098af4
8 files changed
+367 -234

No files matched your search

@@ -106,7 +106,7 @@ public struct EpisodeInfo : Codable {
public let writers: [String]
}
public class TheTVDBService {
final public class TheTVDBService {
public static let sharedInstance = TheTVDBService()
@@ -258,7 +258,7 @@ public class TheTVDBService {
guard let url = URL(string: basePath + "search/series?name=" + encodedName),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[SeriesSearchResult]>.self)
else { return [SeriesSearchResult]() }
else { return [] }
return result.data
}