mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
formatting
This commit is contained in:
parent
45d2968d9e
commit
e525f36824
@ -264,7 +264,8 @@ extension PlayerModel {
|
|||||||
if let video = currentItem.video,
|
if let video = currentItem.video,
|
||||||
video.isLocal,
|
video.isLocal,
|
||||||
video.localStreamIsFile,
|
video.localStreamIsFile,
|
||||||
let localURL = video.localStream?.localURL {
|
let localURL = video.localStream?.localURL
|
||||||
|
{
|
||||||
logger.info("stopping security scoped resource access for \(localURL)")
|
logger.info("stopping security scoped resource access for \(localURL)")
|
||||||
localURL.stopAccessingSecurityScopedResource()
|
localURL.stopAccessingSecurityScopedResource()
|
||||||
}
|
}
|
||||||
@ -293,7 +294,8 @@ extension PlayerModel {
|
|||||||
var restoredQueue = [PlayerQueueItem?]()
|
var restoredQueue = [PlayerQueueItem?]()
|
||||||
|
|
||||||
if let lastPlayed,
|
if let lastPlayed,
|
||||||
!Defaults[.queue].contains(where: { $0.videoID == lastPlayed.videoID }) {
|
!Defaults[.queue].contains(where: { $0.videoID == lastPlayed.videoID })
|
||||||
|
{
|
||||||
restoredQueue.append(lastPlayed)
|
restoredQueue.append(lastPlayed)
|
||||||
self.lastPlayed = nil
|
self.lastPlayed = nil
|
||||||
}
|
}
|
||||||
@ -340,7 +342,8 @@ extension PlayerModel {
|
|||||||
var message = error.userMessage
|
var message = error.userMessage
|
||||||
if let errorDictionary = error.json.dictionaryObject,
|
if let errorDictionary = error.json.dictionaryObject,
|
||||||
let errorMessage = errorDictionary["message"] ?? errorDictionary["error"],
|
let errorMessage = errorDictionary["message"] ?? errorDictionary["error"],
|
||||||
let errorString = errorMessage as? String {
|
let errorString = errorMessage as? String
|
||||||
|
{
|
||||||
message += "\n"
|
message += "\n"
|
||||||
message += errorString
|
message += errorString
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user