Skip to content

Commit

Permalink
Add podcast name to fullscreen player
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jan 4, 2025
1 parent 464050d commit 2f91148
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/layouts/default/PlayerOSD/PlayerFullscreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,34 @@
</MarqueeText>
</v-card-subtitle>

<!-- subtitle: podcast name -->
<v-card-subtitle
v-if="
store.curQueueItem?.media_item &&
'podcast' in store.curQueueItem.media_item &&
store.curQueueItem.media_item.podcast
"
:style="`font-size: ${subTitleFontSize};`"
>
<MarqueeText :sync="playerMarqueeSync">
{{ store.curQueueItem.media_item.podcast.name }}
</MarqueeText>
</v-card-subtitle>

<!-- subtitle: audiobook name -->
<v-card-subtitle
v-if="
store.curQueueItem?.media_item &&
'audiobook' in store.curQueueItem.media_item &&
store.curQueueItem.media_item.audiobook
"
:style="`font-size: ${subTitleFontSize};`"
>
<MarqueeText :sync="playerMarqueeSync">
{{ store.curQueueItem.media_item.audiobook.name }}
</MarqueeText>
</v-card-subtitle>

<!-- subtitle: other source active -->
<v-card-subtitle
v-else-if="
Expand Down Expand Up @@ -271,7 +299,7 @@
</div>
</template>
<template #title>
<!-- only scroll the currently playing track, or when hovered with a separete sync group -->
<!-- only scroll the currently playing track, or when hovered with a separate sync group -->
<MarqueeText
:sync="
index == 0 && activeQueuePanel == 0
Expand Down

0 comments on commit 2f91148

Please sign in to comment.