Fix startAt/stopAt playlist element edition

This commit is contained in:
Chocobozzz 2020-08-17 15:41:26 +02:00 committed by Chocobozzz
parent 60ea8f7a31
commit 50a1e91dcc
1 changed files with 6 additions and 3 deletions

View File

@ -215,10 +215,13 @@ export class VideoPlaylistService {
map(this.restExtractor.extractDataBool),
tap(() => {
const existsResult = this.videoExistsCache[videoId]
const elem = existsResult.find(e => e.playlistElementId === playlistElementId)
elem.startTimestamp = body.startTimestamp
elem.stopTimestamp = body.stopTimestamp
if (existsResult) {
const elem = existsResult.find(e => e.playlistElementId === playlistElementId)
elem.startTimestamp = body.startTimestamp
elem.stopTimestamp = body.stopTimestamp
}
this.runPlaylistCheck(videoId)
}),