Expand Apple TV metadata importer.

This commit is contained in:
Damiano Galassi committed 2019-11-13 13:44:17 +01:00
1 parent 17442e64dc
commit 6dc86fe9bb
5 files changed
+237 -46

No files matched your search

+2 -2
View File
@@ -693,7 +693,7 @@ public struct iTunesStore: MetadataService {
guard let tvShow = metadata[.seriesName] as? String,
let season = metadata[.season] as? Int else { return metadata }
let additionalArtworks = AppleTV().search(term: tvShow, store: store, type: .tvShow(season: season))
let additionalArtworks = AppleTV().searchArtwork(term: tvShow, store: store, type: .tvShow(season: season))
metadata.remoteArtworks.append(contentsOf: additionalArtworks)
return metadata
@@ -777,7 +777,7 @@ public struct iTunesStore: MetadataService {
guard let title = metadata[.name] as? String else { return metadata }
let additionalArtworks = AppleTV().search(term: title, store: store, type: .movie)
let additionalArtworks = AppleTV().searchArtwork(term: title, store: store, type: .movie)
metadata.remoteArtworks.append(contentsOf: additionalArtworks)
return metadata