Partial rewrite of SBMetadataSearchController in Swift.
This commit is contained in:
1 parent
0f4410499e
commit
320d9cdd81
24 files changed
+830
-1073
No files matched your search
@@ -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? {
|
||||
|
||||
Reference in new issue
Block a user