mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-18 07:02:45 +00:00
opsi
This commit is contained in:
parent
d94daaf177
commit
ad2ade2f45
1 changed files with 0 additions and 13 deletions
|
|
@ -122,7 +122,6 @@ struct MediaInfoView: View {
|
|||
.navigationBarHidden(true)
|
||||
.ignoresSafeArea(.container, edges: .top)
|
||||
.onAppear {
|
||||
updateLatestProgress()
|
||||
buttonRefreshTrigger.toggle()
|
||||
|
||||
let savedID = UserDefaults.standard.integer(forKey: "custom_anilist_id_\(href)")
|
||||
|
|
@ -950,18 +949,6 @@ struct MediaInfoView: View {
|
|||
}
|
||||
}
|
||||
|
||||
private func updateLatestProgress() {
|
||||
for ep in episodeLinks.reversed() {
|
||||
let last = UserDefaults.standard.double(forKey: "lastPlayedTime_\(ep.href)")
|
||||
let total = UserDefaults.standard.double(forKey: "totalTime_\(ep.href)")
|
||||
if total > 0 {
|
||||
latestProgress = last / total
|
||||
return
|
||||
}
|
||||
}
|
||||
latestProgress = 0.0
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
private var noEpisodesSection: some View {
|
||||
VStack(spacing: 8) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue