0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-18 01:05:13 +00:00

fix: calculated values

This commit is contained in:
Alex 2022-04-23 17:53:24 +12:00
parent eff022b075
commit d19d124b38
3 changed files with 39 additions and 21 deletions

View file

@ -2,13 +2,8 @@
<base-video-renderer <base-video-renderer
:vidId="video.videoId" :vidId="video.videoId"
:thumbnails="video.thumbnail.thumbnails" :thumbnails="video.thumbnail.thumbnails"
:thumbnailOverlayStyle=" :thumbnailOverlayStyle="thumbnailOverlayStyle"
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.style :thumbnailOverlayText="thumbnailOverlayText"
"
:thumbnailOverlayText="
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.text
.runs[0].text
"
:channelUrl=" :channelUrl="
this.$rendererUtils.getNavigationEndpoints(video.shortBylineText.runs[0]) this.$rendererUtils.getNavigationEndpoints(video.shortBylineText.runs[0])
" "
@ -28,6 +23,17 @@ export default {
baseVideoRenderer, baseVideoRenderer,
}, },
computed: {
thumbnailOverlayText() {
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
?.text.runs[0].text;
},
thumbnailOverlayStyle() {
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
?.style;
},
},
methods: { methods: {
parseBottom(video) { parseBottom(video) {
const bottomText = [ const bottomText = [

View file

@ -2,13 +2,8 @@
<base-video-renderer <base-video-renderer
:vidId="video.videoId" :vidId="video.videoId"
:thumbnails="video.thumbnail.thumbnails" :thumbnails="video.thumbnail.thumbnails"
:thumbnailOverlayStyle=" :thumbnailOverlayStyle="thumbnailOverlayStyle"
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.style :thumbnailOverlayText="thumbnailOverlayText"
"
:thumbnailOverlayText="
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.text
.runs[0].text
"
:channelUrl=" :channelUrl="
$rendererUtils.getNavigationEndpoints( $rendererUtils.getNavigationEndpoints(
video.shortBylineText.runs[0].navigationEndpoint video.shortBylineText.runs[0].navigationEndpoint
@ -30,6 +25,17 @@ export default {
baseVideoRenderer, baseVideoRenderer,
}, },
computed: {
thumbnailOverlayText() {
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
?.text.runs[0].text;
},
thumbnailOverlayStyle() {
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
?.style;
},
},
methods: { methods: {
parseBottom(video) { parseBottom(video) {
const bottomText = [ const bottomText = [

View file

@ -2,13 +2,8 @@
<base-video-renderer <base-video-renderer
:vidId="video.videoId" :vidId="video.videoId"
:thumbnails="video.thumbnail.thumbnails" :thumbnails="video.thumbnail.thumbnails"
:thumbnailOverlayStyle=" :thumbnailOverlayStyle="thumbnailOverlayStyle"
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.style :thumbnailOverlayText="thumbnailOverlayText"
"
:thumbnailOverlayText="
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.text
.runs[0].text
"
:channelUrl=" :channelUrl="
$rendererUtils.getNavigationEndpoints( $rendererUtils.getNavigationEndpoints(
video.shortBylineText.runs[0].navigationEndpoint video.shortBylineText.runs[0].navigationEndpoint
@ -33,6 +28,17 @@ export default {
baseVideoRenderer, baseVideoRenderer,
}, },
computed: {
thumbnailOverlayText() {
return this.video.thumbnailOverlays[0].thumbnailOverlayTimeStatusRenderer
.text.runs[0].text;
},
thumbnailOverlayStyle() {
return this.video.thumbnailOverlays[0].thumbnailOverlayTimeStatusRenderer
.style;
},
},
methods: { methods: {
parseBottom(video) { parseBottom(video) {
const bottomText = [ const bottomText = [