Skip to content

Commit 9e44528

Browse files
authored
Feature: search for radio stream title from full screen player (#462)
* Feature: search for radio stream title from full screen player * Show stream title containing no dash
1 parent 5a14adf commit 9e44528

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

src/layouts/default/PlayerOSD/PlayerFullscreen.vue

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,20 @@
121121
store.curQueueItem?.streamdetails?.stream_title
122122
"
123123
>
124-
<h4 class="fullscreen-track-info-subtitle">
124+
<!-- radio live metadata -->
125+
<h4
126+
v-if="
127+
store.curQueueItem.streamdetails.stream_title.includes(' - ')
128+
"
129+
class="fullscreen-track-info-subtitle"
130+
style="cursor: pointer"
131+
@click="
132+
radioTitleClick(store.curQueueItem.streamdetails.stream_title)
133+
"
134+
>
135+
{{ store.curQueueItem.streamdetails.stream_title }}
136+
</h4>
137+
<h4 v-else class="fullscreen-track-info-subtitle">
125138
{{ store.curQueueItem.streamdetails.stream_title }}
126139
</h4>
127140
</div>
@@ -489,6 +502,13 @@ const radioNameClick = function (item: Radio | ItemMapping) {
489502
store.showFullscreenPlayer = false;
490503
};
491504
505+
const radioTitleClick = function (streamTitle: string) {
506+
// radio station title clicked
507+
store.globalSearchTerm = streamTitle;
508+
router.push({ name: 'search' });
509+
store.showFullscreenPlayer = false;
510+
};
511+
492512
// watchers
493513
watch(
494514
() => store.curQueueItem,

0 commit comments

Comments
 (0)