mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Merge pull request #2732 from Bnyro/master
Support for video license, visibility and tags
This commit is contained in:
commit
d9928b22c2
2 changed files with 15 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -174,6 +174,8 @@
|
|||
"shorts": "Shorts",
|
||||
"all": "All",
|
||||
"category": "Category",
|
||||
"license": "License",
|
||||
"visibility": "Visibility",
|
||||
"chapters_horizontal": "Horizontal",
|
||||
"chapters_vertical": "Vertical"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue