From 2bf3ad5cc35f2a5a41eac0bc045a84c3da2c14ea Mon Sep 17 00:00:00 2001 From: Dominic Drees Date: Tue, 22 Apr 2025 17:48:43 +0200 Subject: [PATCH] fix broken merge --- Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift index 8baff0f..089c453 100644 --- a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift @@ -15,6 +15,8 @@ import MediaPlayer class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDelegate { let module: ScrapingModule + let continueWatchingManager: ContinueWatchingManager + let streamURL: String let fullUrl: String let titleText: String @@ -160,6 +162,7 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele var volumeSliderHostingView: UIView? init(module: ScrapingModule, + continueWatchingManager: ContinueWatchingManager, urlString: String, fullUrl: String, title: String, @@ -170,6 +173,7 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele episodeImageUrl: String) { self.module = module + self.continueWatchingManager = continueWatchingManager self.streamURL = urlString self.fullUrl = fullUrl self.titleText = title @@ -1327,7 +1331,7 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele aniListID: self.aniListID, module: self.module ) - ContinueWatchingManager.shared.save(item: item) + self.continueWatchingManager.save(item: item) }