diff --git a/web-src/src/components/NavbarTop.vue b/web-src/src/components/NavbarTop.vue index c82cdb8e..4e73749d 100644 --- a/web-src/src/components/NavbarTop.vue +++ b/web-src/src/components/NavbarTop.vue @@ -49,6 +49,7 @@ Artists Albums Genres + Radio Spotify Podcasts Audiobooks diff --git a/web-src/src/components/TabsMusic.vue b/web-src/src/components/TabsMusic.vue index fe47b9ab..13e98db1 100644 --- a/web-src/src/components/TabsMusic.vue +++ b/web-src/src/components/TabsMusic.vue @@ -29,6 +29,12 @@ Genres + + + + Radio + + diff --git a/web-src/src/pages/PageRadioStreams.vue b/web-src/src/pages/PageRadioStreams.vue new file mode 100644 index 00000000..c82c236f --- /dev/null +++ b/web-src/src/pages/PageRadioStreams.vue @@ -0,0 +1,70 @@ + + + + + + + Radio + + + {{ tracks.total }} tracks + + + + + + + + + + + + + + + + diff --git a/web-src/src/router/index.js b/web-src/src/router/index.js index 93324236..0c24586a 100644 --- a/web-src/src/router/index.js +++ b/web-src/src/router/index.js @@ -22,6 +22,7 @@ import PageAudiobook from '@/pages/PageAudiobook' import PagePlaylists from '@/pages/PagePlaylists' import PagePlaylist from '@/pages/PagePlaylist' import PageFiles from '@/pages/PageFiles' +import PageRadioStreams from '@/pages/PageRadioStreams' import PageSearch from '@/pages/PageSearch' import PageAbout from '@/pages/PageAbout' import SpotifyPageBrowse from '@/pages/SpotifyPageBrowse' @@ -125,6 +126,12 @@ export const router = new VueRouter({ component: PageGenreTracks, meta: { show_progress: true, has_index: true } }, + { + path: '/music/radio', + name: 'Radio', + component: PageRadioStreams, + meta: { show_progress: true, has_tabs: true } + }, { path: '/podcasts', name: 'Podcasts', diff --git a/web-src/src/webapi/index.js b/web-src/src/webapi/index.js index 4db5d26d..0d45ca6d 100644 --- a/web-src/src/webapi/index.js +++ b/web-src/src/webapi/index.js @@ -255,6 +255,17 @@ export default { }) }, + library_radio_streams () { + var params = { + type: 'tracks', + media_kind: 'music', + expression: 'data_kind is url and song_length = 0' + } + return axios.get('/api/search', { + params: params + }) + }, + library_artist_tracks (artist) { if (artist) { var artistParams = {
Radio
{{ tracks.total }} tracks