Fix startAt/stopAt playlist element edition
This commit is contained in:
parent
60ea8f7a31
commit
50a1e91dcc
|
@ -215,10 +215,13 @@ export class VideoPlaylistService {
|
||||||
map(this.restExtractor.extractDataBool),
|
map(this.restExtractor.extractDataBool),
|
||||||
tap(() => {
|
tap(() => {
|
||||||
const existsResult = this.videoExistsCache[videoId]
|
const existsResult = this.videoExistsCache[videoId]
|
||||||
const elem = existsResult.find(e => e.playlistElementId === playlistElementId)
|
|
||||||
|
|
||||||
elem.startTimestamp = body.startTimestamp
|
if (existsResult) {
|
||||||
elem.stopTimestamp = body.stopTimestamp
|
const elem = existsResult.find(e => e.playlistElementId === playlistElementId)
|
||||||
|
|
||||||
|
elem.startTimestamp = body.startTimestamp
|
||||||
|
elem.stopTimestamp = body.stopTimestamp
|
||||||
|
}
|
||||||
|
|
||||||
this.runPlaylistCheck(videoId)
|
this.runPlaylistCheck(videoId)
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue