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
+3 -3
+3 -3
View File
@@ -2,7 +2,7 @@
// AppleTV.swift
//
// Created by Damiano Galassi on 15/10/2019.
// Copyright © 2022 Damiano Galassi. All rights reserved.
// Copyright © 2022 Damiano Galassi. All rights reserved.
//
import Foundation
@@ -28,7 +28,7 @@ private extension MetadataResult {
self[.cast] = item.rolesSummary?.cast?.joined(separator: ", ")
self[.director] = item.rolesSummary?.directors?.joined(separator: ", ")
self[.iTunesURL] = item.url
self[.iTunesURL] = item.url
self[.serviceSeriesID] = item.id
self.remoteArtworks = [item.images.coverArt16X9, item.images.coverArt].compactMap { $0?.artwork(type: .poster) }
@@ -130,7 +130,7 @@ public struct AppleTV: MetadataService {
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 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 {
return term.replacingOccurrences(of: " (Dubbed)", with: "")