feat: resolve AniList episodes through ZokoAnime

This commit is contained in:
2026-10-25 15:46:35 +01:00
parent 8c2a18df48
commit ab61d83c69
16 changed files with 492 additions and 21 deletions
+4
View File
@@ -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() }