mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-19 15:42:09 +00:00
Fix
This commit is contained in:
parent
7bd4d41f4e
commit
30d5864d1e
1 changed files with 9 additions and 3 deletions
|
|
@ -200,8 +200,6 @@ struct MediaInfoView: View {
|
|||
.onAppear {
|
||||
setupViewOnAppear()
|
||||
|
||||
// Fetch Jikan filler info (if available)
|
||||
fetchJikanFillerInfoIfNeeded()
|
||||
NotificationCenter.default.post(name: .hideTabBar, object: nil)
|
||||
UserDefaults.standard.set(true, forKey: "isMediaInfoActive")
|
||||
}
|
||||
|
|
@ -220,6 +218,14 @@ struct MediaInfoView: View {
|
|||
.onChange(of: selectedChapterRange) { newValue in
|
||||
UserDefaults.standard.set(newValue.lowerBound, forKey: selectedChapterRangeKey)
|
||||
}
|
||||
.onChange(of: itemID) { newValue in
|
||||
guard newValue != nil else { return }
|
||||
fetchJikanFillerInfoIfNeeded()
|
||||
}
|
||||
.onChange(of: matchedMalID) { newValue in
|
||||
guard newValue != nil else { return }
|
||||
fetchJikanFillerInfoIfNeeded()
|
||||
}
|
||||
.onDisappear {
|
||||
currentFetchTask?.cancel()
|
||||
activeFetchID = nil
|
||||
|
|
@ -1660,7 +1666,7 @@ struct MediaInfoView: View {
|
|||
self.itemID = id
|
||||
aniListSuccess = true
|
||||
Logger.shared.log("Successfully fetched AniList ID: \(id)", type: "Debug")
|
||||
fetchMalIDFromAniList(anilistID: id) { fetchedMalID in
|
||||
self.fetchMalIDFromAniList(anilistID: id) { fetchedMalID in
|
||||
self.matchedMalID = fetchedMalID
|
||||
}
|
||||
case .failure(let error):
|
||||
|
|
|
|||
Loading…
Reference in a new issue