Changed v=60 to v=58 to fix AppleTV Metadata Loads

For some reason, v60 moved to v3 pathing.  Random versions
remain on v2.  I chose v=58.  Seems to work. ::shrug::
This commit is contained in:
Richard Lyon committed 2022-04-09 22:34:03 -04:00
1 parent 6194da4e06
commit 61c8ae3567
1 file changed
+2 -2
+2 -2
View File
@@ -2,7 +2,7 @@
// AppleTV.swift // AppleTV.swift
// //
// Created by Damiano Galassi on 15/10/2019. // Created by Damiano Galassi on 15/10/2019.
// Copyright © 2022 Damiano Galassi. All rights reserved. // Copyright © 2022 Damiano Galassi. All rights reserved.
// //
import Foundation import Foundation
@@ -130,7 +130,7 @@ public struct AppleTV: MetadataService {
private let detailsURL = "https://uts-api.itunes.apple.com/uts/v2/view/product/" private let detailsURL = "https://uts-api.itunes.apple.com/uts/v2/view/product/"
private let episodesURL = "https://uts-api.itunes.apple.com/uts/v2/view/show/" private let episodesURL = "https://uts-api.itunes.apple.com/uts/v2/view/show/"
private let seasonsURL = "https://uts-api.itunes.apple.com/uts/v2/show/" private let seasonsURL = "https://uts-api.itunes.apple.com/uts/v2/show/"
private let options = "&utsk=0&caller=wta&v=60&pfm=web" private let options = "&utsk=0&caller=wta&v=58&pfm=web"
private func normalize(_ term: String) -> String { private func normalize(_ term: String) -> String {
return term.replacingOccurrences(of: " (Dubbed)", with: "") return term.replacingOccurrences(of: " (Dubbed)", with: "")