mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Improve data parsers
This commit is contained in:
@@ -529,7 +529,8 @@ final class PlayerModel: ObservableObject {
|
||||
|
||||
func updateCurrentArtwork() {
|
||||
guard let video = currentVideo,
|
||||
let thumbnailData = try? Data(contentsOf: video.thumbnailURL(quality: .medium)!)
|
||||
let thumbnailURL = video.thumbnailURL(quality: .medium),
|
||||
let thumbnailData = try? Data(contentsOf: thumbnailURL)
|
||||
else {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user