Prefer short id
This commit is contained in:
parent
c94ec79107
commit
148641d197
|
@ -144,7 +144,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
transcriptionWidgetOpened = false
|
transcriptionWidgetOpened = false
|
||||||
|
|
||||||
private nextRecommendedVideoUUID = ''
|
private nextRecommendedVideoId = ''
|
||||||
private nextRecommendedVideoTitle = ''
|
private nextRecommendedVideoTitle = ''
|
||||||
|
|
||||||
private videoFileToken: string
|
private videoFileToken: string
|
||||||
|
@ -243,7 +243,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
// The recommended videos's first element should be the next video
|
// The recommended videos's first element should be the next video
|
||||||
const video = videos[0]
|
const video = videos[0]
|
||||||
this.nextRecommendedVideoUUID = video.uuid
|
this.nextRecommendedVideoId = video.shortUUID
|
||||||
this.nextRecommendedVideoTitle = video.name
|
this.nextRecommendedVideoTitle = video.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -629,8 +629,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.nextRecommendedVideoUUID) {
|
if (this.nextRecommendedVideoId) {
|
||||||
this.router.navigate([ '/w', this.nextRecommendedVideoUUID ])
|
this.router.navigate([ '/w', this.nextRecommendedVideoId ])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue