show video license and visibility in description

This commit is contained in:
Bnyro 2023-07-30 18:10:03 +02:00
parent 8a4957e115
commit 7a14ab08a2
2 changed files with 5 additions and 0 deletions

View File

@ -160,11 +160,14 @@
<!-- eslint-disable-next-line vue/no-v-html --> <!-- eslint-disable-next-line vue/no-v-html -->
<div v-show="showDesc" class="break-words description" v-html="purifiedDescription" /> <div v-show="showDesc" class="break-words description" v-html="purifiedDescription" />
<template v-if="showDesc"> <template v-if="showDesc">
<br />
<div <div
v-if="sponsors && sponsors.segments" v-if="sponsors && sponsors.segments"
v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`" v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`"
/> />
<div v-if="video.category" v-text="`${$t('video.category')}: ${video.category}`" /> <div v-if="video.category" v-text="`${$t('video.category')}: ${video.category}`" />
<div v-text="`${$t('video.license')}: ${video.license}`" />
<div class="capitalize" v-text="`${$t('video.visibility')}: ${video.visibility}`" />
</template> </template>
</div> </div>

View File

@ -174,6 +174,8 @@
"shorts": "Shorts", "shorts": "Shorts",
"all": "All", "all": "All",
"category": "Category", "category": "Category",
"license": "License",
"visibility": "Visibility",
"chapters_horizontal": "Horizontal", "chapters_horizontal": "Horizontal",
"chapters_vertical": "Vertical" "chapters_vertical": "Vertical"
}, },