mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 08:32:00 +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
|
// Use the stream type aware download method
|
||||||
downloadWithStreamTypeSupport(
|
downloadWithStreamTypeSupport(
|
||||||
url: url,
|
url: url,
|
||||||
aniListID: aniListID,
|
|
||||||
headers: headers,
|
headers: headers,
|
||||||
title: title,
|
title: title,
|
||||||
imageURL: imageURL,
|
imageURL: imageURL,
|
||||||
|
aniListID: aniListID,
|
||||||
module: module,
|
module: module,
|
||||||
isEpisode: isEpisode,
|
isEpisode: isEpisode,
|
||||||
showTitle: showTitle,
|
showTitle: showTitle,
|
||||||
|
|
@ -274,10 +274,10 @@ extension JSController {
|
||||||
// Use the exact same method that manual downloads use
|
// Use the exact same method that manual downloads use
|
||||||
downloadWithStreamTypeSupport(
|
downloadWithStreamTypeSupport(
|
||||||
url: queuedDownload.originalURL,
|
url: queuedDownload.originalURL,
|
||||||
aniListID: queuedDownload.aniListID,
|
|
||||||
headers: queuedDownload.headers,
|
headers: queuedDownload.headers,
|
||||||
title: queuedDownload.title,
|
title: queuedDownload.title,
|
||||||
imageURL: queuedDownload.imageURL,
|
imageURL: queuedDownload.imageURL,
|
||||||
|
aniListID: queuedDownload.aniListID,
|
||||||
module: module,
|
module: module,
|
||||||
isEpisode: queuedDownload.type == .episode,
|
isEpisode: queuedDownload.type == .episode,
|
||||||
showTitle: queuedDownload.metadata?.showTitle,
|
showTitle: queuedDownload.metadata?.showTitle,
|
||||||
|
|
@ -1223,7 +1223,7 @@ extension JSController: AVAssetDownloadDelegate {
|
||||||
// Fetch and save AniSkip OP/ED markers as a sidecar (non-blocking, optional)
|
// Fetch and save AniSkip OP/ED markers as a sidecar (non-blocking, optional)
|
||||||
if let isEp = download.metadata?.episode, isEp > 0 {
|
if let isEp = download.metadata?.episode, isEp > 0 {
|
||||||
let epNumber = isEp
|
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
|
DispatchQueue.main.async { [weak self] in
|
||||||
self?.savedAssets = DownloadPersistence.load()
|
self?.savedAssets = DownloadPersistence.load()
|
||||||
|
|
@ -1718,5 +1718,4 @@ enum DownloadQueueStatus: Equatable {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -31,10 +31,10 @@ extension JSController {
|
||||||
Logger.shared.log("Using HLS download method")
|
Logger.shared.log("Using HLS download method")
|
||||||
downloadWithM3U8Support(
|
downloadWithM3U8Support(
|
||||||
url: url,
|
url: url,
|
||||||
aniListID: aniListID,
|
|
||||||
headers: headers,
|
headers: headers,
|
||||||
title: title,
|
title: title,
|
||||||
imageURL: imageURL,
|
imageURL: imageURL,
|
||||||
|
aniListID: aniListID,
|
||||||
isEpisode: isEpisode,
|
isEpisode: isEpisode,
|
||||||
showTitle: showTitle,
|
showTitle: showTitle,
|
||||||
season: season,
|
season: season,
|
||||||
|
|
@ -47,10 +47,10 @@ extension JSController {
|
||||||
Logger.shared.log("Using MP4 download method")
|
Logger.shared.log("Using MP4 download method")
|
||||||
downloadMP4(
|
downloadMP4(
|
||||||
url: url,
|
url: url,
|
||||||
aniListID: aniListID,
|
|
||||||
headers: headers,
|
headers: headers,
|
||||||
title: title,
|
title: title,
|
||||||
imageURL: imageURL,
|
imageURL: imageURL,
|
||||||
|
aniListID: aniListID,
|
||||||
isEpisode: isEpisode,
|
isEpisode: isEpisode,
|
||||||
showTitle: showTitle,
|
showTitle: showTitle,
|
||||||
season: season,
|
season: season,
|
||||||
|
|
|
||||||
|
|
@ -2228,12 +2228,12 @@ struct MediaInfoView: View {
|
||||||
|
|
||||||
self.jsController.downloadWithStreamTypeSupport(
|
self.jsController.downloadWithStreamTypeSupport(
|
||||||
url: url,
|
url: url,
|
||||||
aniListID: self.itemID,
|
|
||||||
headers: headers,
|
headers: headers,
|
||||||
title: episodeTitle,
|
title: episodeTitle,
|
||||||
imageURL: episodeThumbnailURL,
|
imageURL: episodeThumbnailURL,
|
||||||
module: self.module,
|
module: self.module,
|
||||||
isEpisode: true,
|
isEpisode: true,
|
||||||
|
aniListID: self.itemID,
|
||||||
showTitle: self.title,
|
showTitle: self.title,
|
||||||
season: 1,
|
season: 1,
|
||||||
episode: episode.number,
|
episode: episode.number,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue