Partial rewrite of SBMetadataSearchController in Swift.

This commit is contained in:
Damiano Galassi committed 2017-08-04 17:02:08 +02:00
1 parent 0f4410499e
commit 320d9cdd81
24 files changed
+830 -1073

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ public struct ChapterDB : ChapterService {
private func fetch(url: URL) -> Data? {
let header = ["ApiKey": "ETET7TXFJH45YNYW0I4A"]
return SBMetadataHelper.downloadData(from: url, httpMethod: "GET", httpBody: nil, headerOptions: header, cachePolicy: .default)
return URLSession.data(from: url, header: header)
}
private func title(node: XMLNode) -> String? {