Try to limit the random artworks returned by the AppleTV provider
This commit is contained in:
3 files changed
+40
-39
No files matched your search
@@ -238,7 +238,7 @@ public struct AppleTV: MetadataService {
|
||||
|
||||
if let result = items?.filter({ $0.title == normalizedTerm }).first {
|
||||
return result
|
||||
} else if let result = items?.first {
|
||||
} else if let result = items?.filter({ $0.title?.minimumEditDistance(other: normalizedTerm) ?? Int.max < 8 }).first {
|
||||
return result
|
||||
} else {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user