support homepage

This commit is contained in:
Sayem Chowdhury 2021-04-13 13:27:38 +06:00
parent 759ad6220c
commit 9c8bc63ee1

View File

@ -138,10 +138,11 @@ export const getChannelList = async (): Promise<channelSearchType> => request({}
/** /**
* Get details about a playlist channel * 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 = { const gateway_input = {
page: 'channels/' + name, page: name ? 'channels/' + name : 'home',
version: '2.3', version: '2.3',
support: { support: {
'long-card-horizontal-grid': ['album', 'playlist', 'radio', 'show', 'livestream'], 'long-card-horizontal-grid': ['album', 'playlist', 'radio', 'show', 'livestream'],