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
@@ -223,7 +223,7 @@ final public class TheMovieDBService {
|
||||
"Accept" : "application/json;charset=utf-8",
|
||||
"Accept-Language" : language]
|
||||
|
||||
return SBMetadataHelper.downloadData(from: url, httpMethod: "GET", httpBody: nil, headerOptions: header, cachePolicy: .default)
|
||||
return URLSession.data(from: url, header: header)
|
||||
}
|
||||
|
||||
private func sendJSONRequest<T>(url: URL, language: String, type: T.Type) -> T? where T : Decodable {
|
||||
|
||||
Reference in new issue
Block a user