feat: resolve AniList episodes through ZokoAnime
This commit is contained in:
@@ -69,6 +69,10 @@ struct StreamQueue: Sendable {
|
||||
url = URL(string: item.url)!
|
||||
identity = "miruro:\(mediaID):\(episode)"
|
||||
label = "\(url.lastPathComponent.replacingOccurrences(of: "-", with: " ")) · Episode \(episode)"
|
||||
case .anilist(let mediaID, let episode):
|
||||
url = URL(string: item.url)!
|
||||
identity = "anilist:\(mediaID):\(episode)"
|
||||
label = "AniList \(mediaID) · Episode \(episode) (sub)"
|
||||
}
|
||||
guard identities.insert(identity).inserted,
|
||||
item.progress_file.hasPrefix("/"), !item.progress_file.contains("\0") else { throw InvalidQueue() }
|
||||
|
||||
Reference in New Issue
Block a user