Store the artwork type as an enum.
This commit is contained in:
1 parent
422e1c9853
commit
4af77ad780
12 files changed
+196
-174
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user