fix(chapterdb): change ChapterDB base url to chapterdb.plex.tv

This commit is contained in:
sidneys committed 2019-05-01 03:28:02 +02:00
1 parent b609743211
commit 3aebb2f06d
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ public struct ChapterDB : ChapterService {
public func search(title: String, duration: UInt64) -> [ChapterResult] {
guard let url = URL(string: "http://chapterdb.org/chapters/search?title=\(title.urlEncoded())"),
guard let url = URL(string: "http://chapterdb.plex.tv/chapters/search?title=\(title.urlEncoded())"),
let data = fetch(url: url)
else { return [] }
@@ -28,7 +28,7 @@ public struct ChapterDB : ChapterService {
}
private func fetchDetails(id: UInt64) -> [Chapter]? {
guard let url = URL(string: "http://chapterdb.org/chapters/\(id)"),
guard let url = URL(string: "http://chapterdb.plex.tv/chapters/\(id)"),
let data = fetch(url: url)
else { return [] }