Merge pull request #2121 from vr10t/category

Show video category
This commit is contained in:
Kavin 2023-02-19 18:29:00 +00:00 committed by GitHub
commit 432b828587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -148,10 +148,13 @@
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-show="showDesc" class="break-words" v-html="purifyHTML(video.description)" />
<div
v-if="showDesc && sponsors && sponsors.segments"
v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`"
/>
<template v-if="showDesc">
<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}`" />
</template>
</div>
<hr />

View File

@ -157,7 +157,8 @@
"chapters": "Chapters",
"live": "{0} Live",
"shorts": "Shorts",
"all": "All"
"all": "All",
"category": "Category"
},
"search": {
"did_you_mean": "Did you mean: {0}?",