mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-25 20:55:17 +00:00
fix: calculated values
This commit is contained in:
parent
eff022b075
commit
d19d124b38
3 changed files with 39 additions and 21 deletions
|
@ -2,13 +2,8 @@
|
|||
<base-video-renderer
|
||||
:vidId="video.videoId"
|
||||
:thumbnails="video.thumbnail.thumbnails"
|
||||
:thumbnailOverlayStyle="
|
||||
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.style
|
||||
"
|
||||
:thumbnailOverlayText="
|
||||
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.text
|
||||
.runs[0].text
|
||||
"
|
||||
:thumbnailOverlayStyle="thumbnailOverlayStyle"
|
||||
:thumbnailOverlayText="thumbnailOverlayText"
|
||||
:channelUrl="
|
||||
this.$rendererUtils.getNavigationEndpoints(video.shortBylineText.runs[0])
|
||||
"
|
||||
|
@ -28,6 +23,17 @@ export default {
|
|||
baseVideoRenderer,
|
||||
},
|
||||
|
||||
computed: {
|
||||
thumbnailOverlayText() {
|
||||
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
|
||||
?.text.runs[0].text;
|
||||
},
|
||||
thumbnailOverlayStyle() {
|
||||
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
|
||||
?.style;
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
parseBottom(video) {
|
||||
const bottomText = [
|
||||
|
|
|
@ -2,13 +2,8 @@
|
|||
<base-video-renderer
|
||||
:vidId="video.videoId"
|
||||
:thumbnails="video.thumbnail.thumbnails"
|
||||
:thumbnailOverlayStyle="
|
||||
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.style
|
||||
"
|
||||
:thumbnailOverlayText="
|
||||
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.text
|
||||
.runs[0].text
|
||||
"
|
||||
:thumbnailOverlayStyle="thumbnailOverlayStyle"
|
||||
:thumbnailOverlayText="thumbnailOverlayText"
|
||||
:channelUrl="
|
||||
$rendererUtils.getNavigationEndpoints(
|
||||
video.shortBylineText.runs[0].navigationEndpoint
|
||||
|
@ -30,6 +25,17 @@ export default {
|
|||
baseVideoRenderer,
|
||||
},
|
||||
|
||||
computed: {
|
||||
thumbnailOverlayText() {
|
||||
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
|
||||
?.text.runs[0].text;
|
||||
},
|
||||
thumbnailOverlayStyle() {
|
||||
return this.video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer
|
||||
?.style;
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
parseBottom(video) {
|
||||
const bottomText = [
|
||||
|
|
|
@ -2,13 +2,8 @@
|
|||
<base-video-renderer
|
||||
:vidId="video.videoId"
|
||||
:thumbnails="video.thumbnail.thumbnails"
|
||||
:thumbnailOverlayStyle="
|
||||
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.style
|
||||
"
|
||||
:thumbnailOverlayText="
|
||||
video.thumbnailOverlays[0]?.thumbnailOverlayTimeStatusRenderer?.text
|
||||
.runs[0].text
|
||||
"
|
||||
:thumbnailOverlayStyle="thumbnailOverlayStyle"
|
||||
:thumbnailOverlayText="thumbnailOverlayText"
|
||||
:channelUrl="
|
||||
$rendererUtils.getNavigationEndpoints(
|
||||
video.shortBylineText.runs[0].navigationEndpoint
|
||||
|
@ -33,6 +28,17 @@ export default {
|
|||
baseVideoRenderer,
|
||||
},
|
||||
|
||||
computed: {
|
||||
thumbnailOverlayText() {
|
||||
return this.video.thumbnailOverlays[0].thumbnailOverlayTimeStatusRenderer
|
||||
.text.runs[0].text;
|
||||
},
|
||||
thumbnailOverlayStyle() {
|
||||
return this.video.thumbnailOverlays[0].thumbnailOverlayTimeStatusRenderer
|
||||
.style;
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
parseBottom(video) {
|
||||
const bottomText = [
|
||||
|
|
Loading…
Reference in a new issue