Use https for chapterdb.

This commit is contained in:
Damiano Galassi committed 2019-05-02 12:19:04 +02:00
1 parent f14e78619e
commit 13fa0bec4b
2 files changed
+4 -11

No files matched your search

+4 -2
View File
@@ -10,9 +10,11 @@ import MP42Foundation
public struct ChapterDB : ChapterService {
private let basePath = "https://chapterdb.plex.tv/chapters/"
public func search(title: String, duration: UInt64) -> [ChapterResult] {
guard let url = URL(string: "http://chapterdb.plex.tv/chapters/search?title=\(title.urlEncoded())"),
guard let url = URL(string: "\(basePath)search?title=\(title.urlEncoded())"),
let data = fetch(url: url)
else { return [] }
@@ -28,7 +30,7 @@ public struct ChapterDB : ChapterService {
}
private func fetchDetails(id: UInt64) -> [Chapter]? {
guard let url = URL(string: "http://chapterdb.plex.tv/chapters/\(id)"),
guard let url = URL(string: "\(basePath)\(id)"),
let data = fetch(url: url)
else { return [] }
-9
View File
@@ -149,15 +149,6 @@
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>chapterdb.plex.tv</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.2</string>
</dict>
<key>mzstatic.com</key>
<dict>
<key>NSIncludesSubdomains</key>