mirror of
https://codeberg.org/Hyperpipe/hyperpipe-backend
synced 2024-12-06 19:26:30 +01:00
49 lines
838 B
Go
49 lines
838 B
Go
package main
|
|
|
|
import "strings"
|
|
|
|
var BaseContext Context = Context{
|
|
Client: Client{
|
|
Name: "WEB_REMIX",
|
|
Version: "1.20220926.01.00",
|
|
Hl: "en-US",
|
|
},
|
|
}
|
|
|
|
func GetTypeBrowse(t, id, params string) BrowseData {
|
|
|
|
if t != "" {
|
|
return BrowseData{
|
|
Context: BaseContext,
|
|
MusicConfig: BrowseMusicConfig{
|
|
MusicConfig: PageType{
|
|
PageType: "MUSIC_PAGE_TYPE_" + strings.ToUpper(t),
|
|
},
|
|
},
|
|
BrowseId: id,
|
|
}
|
|
} else {
|
|
return BrowseData{
|
|
Context: BaseContext,
|
|
BrowseId: id,
|
|
Params: params,
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
func GetTypeNext(id, pid string) NextData {
|
|
return NextData{
|
|
Id: id,
|
|
PlaylistId: pid,
|
|
Context: BaseContext,
|
|
Panel: true,
|
|
Audio: true,
|
|
Tuner: "AUTOMIX_SETTING_NORMAL",
|
|
MusicConfig: WatchMusicConfig{
|
|
Panel: true,
|
|
Type: "MUSIC_VIDEO_TYPE_ATV",
|
|
},
|
|
}
|
|
}
|