Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IV: Display video tags in search results #5590

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/renderer/components/ft-list-video/ft-list-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ export default defineComponent({
published: undefined,
isLive: false,
is4k: false,
is8k: false,
isNew: false,
isVr180: false,
isVr360: false,
is3D: false,
hasCaptions: false,
isUpcoming: false,
isPremium: false,
Expand Down Expand Up @@ -662,6 +667,11 @@ export default defineComponent({
this.isLive = this.data.liveNow || this.data.lengthSeconds === 'undefined'
this.isUpcoming = this.data.isUpcoming || this.data.premiere
this.is4k = this.data.is4k
this.is8k = this.data.is8k
this.isNew = this.data.isNew
this.isVr180 = this.data.isVr180
this.isVr360 = this.data.isVr360
this.is3D = this.data.is3d
this.hasCaptions = this.data.hasCaptions
this.isPremium = this.data.premium || false
this.viewCount = this.data.viewCount
Expand Down
42 changes: 41 additions & 1 deletion src/renderer/components/ft-list-video/ft-list-video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,17 @@
> • {{ $tc('Global.Counts.Watching Count', viewCount, {count: parsedViewCount}) }}</span>
</div>
<div
v-if="is4k || hasCaptions"
v-if="is4k || hasCaptions || is8k || isNew || isVr180 || isVr360 || is3D"
class="videoTagLine"
>
<div
v-if="isNew"
class="videoTag"
:aria-label="$t('Search Listing.Label.New')"
role="img"
>
{{ $t('Search Listing.Label.New') }}
</div>
<div
v-if="is4k"
class="videoTag"
Expand All @@ -157,6 +165,38 @@
>
{{ $t('Search Listing.Label.4K') }}
</div>
<div
v-if="is8k"
class="videoTag"
:aria-label="$t('Search Listing.Label.8K')"
role="img"
>
{{ $t('Search Listing.Label.8K') }}
</div>
<div
v-if="isVr180"
class="videoTag"
:aria-label="$t('Search Listing.Label.VR180')"
role="img"
>
{{ $t('Search Listing.Label.VR180') }}
</div>
<div
v-if="isVr360"
class="videoTag"
:aria-label="$t('Search Listing.Label.360 Video')"
role="img"
>
{{ $t('Search Listing.Label.360 Video') }}
</div>
<div
v-if="is3D"
class="videoTag"
:aria-label="$t('Search Listing.Label.3D')"
role="img"
>
{{ $t('Search Listing.Label.3D') }}
</div>
<div
v-if="hasCaptions"
class="videoTag"
Expand Down
5 changes: 5 additions & 0 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ Search character limit: Search query is over the {searchCharacterLimit} characte
Search Listing:
Label:
4K: 4K
8K: 8K
VR180: VR180
360 Video: 360°
Subtitles: Subtitles
New: New
3D: 3D
# Aria labels
Closed Captions: Closed Captions
# In Filter Button
Expand Down