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

View file

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