Merge pull request #2732 from Bnyro/master

Support for video license, visibility and tags
This commit is contained in:
Bnyro 2023-07-30 18:20:38 +02:00 committed by GitHub
commit d9928b22c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -160,11 +160,24 @@
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-show="showDesc" class="break-words description" v-html="purifiedDescription" />
<template v-if="showDesc">
<br />
<div
v-if="sponsors && sponsors.segments"
v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`"
/>
<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}`" />
<div v-if="video.tags" class="flex gap-2 mt-2">
<router-link
v-for="tag in video.tags"
:key="tag"
class="rounded-s px-2 py-1 btn"
:to="`/results?search_query=${encodeURIComponent(tag)}`"
>{{ tag }}</router-link
>
</div>
</template>
</div>

View File

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