Prefer short id

This commit is contained in:
Chocobozzz 2024-11-26 15:13:14 +01:00
parent c94ec79107
commit 148641d197
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 4 deletions

View File

@ -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 ])
} }
}) })
} }