Fix another regression
This commit is contained in:
1 parent
fb1d3c7602
commit
0244185f9b
1 file changed
+3
-4
@@ -45,7 +45,7 @@ import Foundation
|
|||||||
|
|
||||||
switch type {
|
switch type {
|
||||||
case .iTunes:
|
case .iTunes:
|
||||||
artworkService = "iTunes"
|
artworkService = "iTunes Store"
|
||||||
case .Episode:
|
case .Episode:
|
||||||
artworkService = provider
|
artworkService = provider
|
||||||
artworkType = "episode"
|
artworkType = "episode"
|
||||||
@@ -57,9 +57,8 @@ import Foundation
|
|||||||
artworkType = "poster"
|
artworkType = "poster"
|
||||||
}
|
}
|
||||||
|
|
||||||
let filteredByService = artworks.filter { $0.service == artworkService }
|
for (index, image) in artworks.enumerated() {
|
||||||
for (index, image) in filteredByService.enumerated() {
|
if image.service == artworkService && image.type.hasPrefix(artworkType) {
|
||||||
if image.type.hasPrefix(artworkType) {
|
|
||||||
return index
|
return index
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user