Store the artwork type as an enum.

This commit is contained in:
Damiano Galassi committed 2017-08-09 13:28:24 +02:00
1 parent 422e1c9853
commit 4af77ad780
12 files changed
+196 -174

No files matched your search

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