Improve artworks categorization.

This commit is contained in:
Damiano Galassi committed 2019-11-18 11:46:05 +01:00
1 parent 79734ef123
commit 1f39136f34
10 files changed
+111 -113

No files matched your search

+3 -2
View File
@@ -367,8 +367,9 @@ public struct iTunesStore: MetadataService {
if let artworkURL = URL(string: text),
let artworkFullSizeURL = URL(string: text.replacingOccurrences(of: "100x100bb", with: replacement)) {
let type = isTVShow ? ArtworkType.square : .poster
return Artwork(url:artworkFullSizeURL, thumbURL: artworkURL, service: self.name, type: type)
let size = isTVShow ? ArtworkSize.square : .standard
let type = isTVShow ? ArtworkType.season : .poster
return Artwork(url:artworkFullSizeURL, thumbURL: artworkURL, service: self.name, type: type, size: size)
}
return nil