mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-13 13:00:40 +00:00
Maybe fix build issues
This commit is contained in:
parent
afab4eec9d
commit
8bfa834c88
3 changed files with 7 additions and 8 deletions
|
|
@ -122,10 +122,10 @@ extension JSController {
|
|||
// Use the stream type aware download method
|
||||
downloadWithStreamTypeSupport(
|
||||
url: url,
|
||||
aniListID: aniListID,
|
||||
headers: headers,
|
||||
title: title,
|
||||
imageURL: imageURL,
|
||||
aniListID: aniListID,
|
||||
module: module,
|
||||
isEpisode: isEpisode,
|
||||
showTitle: showTitle,
|
||||
|
|
@ -274,10 +274,10 @@ extension JSController {
|
|||
// Use the exact same method that manual downloads use
|
||||
downloadWithStreamTypeSupport(
|
||||
url: queuedDownload.originalURL,
|
||||
aniListID: queuedDownload.aniListID,
|
||||
headers: queuedDownload.headers,
|
||||
title: queuedDownload.title,
|
||||
imageURL: queuedDownload.imageURL,
|
||||
aniListID: queuedDownload.aniListID,
|
||||
module: module,
|
||||
isEpisode: queuedDownload.type == .episode,
|
||||
showTitle: queuedDownload.metadata?.showTitle,
|
||||
|
|
@ -1223,7 +1223,7 @@ extension JSController: AVAssetDownloadDelegate {
|
|||
// Fetch and save AniSkip OP/ED markers as a sidecar (non-blocking, optional)
|
||||
if let isEp = download.metadata?.episode, isEp > 0 {
|
||||
let epNumber = isEp
|
||||
fetchAndSaveAniSkipSidecar(aniListID: aniListID, episode: epNumber, assetID: newAsset.id.uuidString)
|
||||
fetchAndSaveAniSkipSidecar(aniListID: download.aniListID, episode: epNumber, assetID: newAsset.id.uuidString)
|
||||
}
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.savedAssets = DownloadPersistence.load()
|
||||
|
|
@ -1718,5 +1718,4 @@ enum DownloadQueueStatus: Equatable {
|
|||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -31,10 +31,10 @@ extension JSController {
|
|||
Logger.shared.log("Using HLS download method")
|
||||
downloadWithM3U8Support(
|
||||
url: url,
|
||||
aniListID: aniListID,
|
||||
headers: headers,
|
||||
title: title,
|
||||
imageURL: imageURL,
|
||||
aniListID: aniListID,
|
||||
isEpisode: isEpisode,
|
||||
showTitle: showTitle,
|
||||
season: season,
|
||||
|
|
@ -47,10 +47,10 @@ extension JSController {
|
|||
Logger.shared.log("Using MP4 download method")
|
||||
downloadMP4(
|
||||
url: url,
|
||||
aniListID: aniListID,
|
||||
headers: headers,
|
||||
title: title,
|
||||
imageURL: imageURL,
|
||||
aniListID: aniListID,
|
||||
isEpisode: isEpisode,
|
||||
showTitle: showTitle,
|
||||
season: season,
|
||||
|
|
|
|||
|
|
@ -2228,12 +2228,12 @@ struct MediaInfoView: View {
|
|||
|
||||
self.jsController.downloadWithStreamTypeSupport(
|
||||
url: url,
|
||||
aniListID: self.itemID,
|
||||
headers: headers,
|
||||
title: episodeTitle,
|
||||
imageURL: episodeThumbnailURL,
|
||||
module: self.module,
|
||||
isEpisode: true,
|
||||
aniListID: self.itemID,
|
||||
showTitle: self.title,
|
||||
season: 1,
|
||||
episode: episode.number,
|
||||
|
|
|
|||
Loading…
Reference in a new issue