mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 07:34:42 +02:00
support homepage
This commit is contained in:
parent
759ad6220c
commit
9c8bc63ee1
@ -138,10 +138,11 @@ export const getChannelList = async (): Promise<channelSearchType> => request({}
|
||||
|
||||
/**
|
||||
* Get details about a playlist channel
|
||||
* Return homepage if name is undefined
|
||||
*/
|
||||
export const getPlaylistChannel = async (name: string): Promise<playlistChannelType> => {
|
||||
export const getPlaylistChannel = async (name?: string): Promise<playlistChannelType> => {
|
||||
const gateway_input = {
|
||||
page: 'channels/' + name,
|
||||
page: name ? 'channels/' + name : 'home',
|
||||
version: '2.3',
|
||||
support: {
|
||||
'long-card-horizontal-grid': ['album', 'playlist', 'radio', 'show', 'livestream'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user