1
0
Fork 0

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

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)
}),