mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
adding addonId to player's saved progress
This commit is contained in:
parent
af96d30122
commit
7d6008b0a9
1 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,8 @@ export const useWatchProgress = (
|
|||
duration: number,
|
||||
paused: boolean,
|
||||
traktAutosync: any,
|
||||
seekToTime: (time: number) => void
|
||||
seekToTime: (time: number) => void,
|
||||
addonId?: string
|
||||
) => {
|
||||
const [resumePosition, setResumePosition] = useState<number | null>(null);
|
||||
const [savedDuration, setSavedDuration] = useState<number | null>(null);
|
||||
|
|
@ -74,7 +75,8 @@ export const useWatchProgress = (
|
|||
const progress = {
|
||||
currentTime: currentTimeRef.current,
|
||||
duration: durationRef.current,
|
||||
lastUpdated: Date.now()
|
||||
lastUpdated: Date.now(),
|
||||
addonId: addonId
|
||||
};
|
||||
try {
|
||||
await storageService.setWatchProgress(id, type, progress, episodeId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue