Migrate the chapter importer to Swift.

This commit is contained in:
Damiano Galassi committed 2017-07-31 17:52:08 +02:00
1 parent 514ab21fb7
commit 23f626be9f
10 files changed
+317 -44

No files matched your search

@@ -254,7 +254,7 @@ final public class TheTVDBService {
// MARK: - Service calls
public func fetch(series: String, language: String) -> [SeriesSearchResult] {
let encodedName = SBMetadataHelper.urlEncoded(series)
let encodedName = series.urlEncoded()
guard let url = URL(string: basePath + "search/series?name=" + encodedName),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[SeriesSearchResult]>.self)