Documentation ¶
Overview ¶
Package gohinetradio is to get hichannel radio path and with token to play without flash.
Index ¶
Constants ¶
View Source
const ( PLAYURL string = "http://hichannel.hinet.net/radio/play.do?id=%s" LISTURL string = "http://hichannel.hinet.net/radio/channelList.do?radioType=&freqType=&freq=&area=&pN=%d" LISTPAGE int = 1 )
Base URL.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RadioData ¶
type RadioData struct { ChannelTitle string `json:"channel_title"` PlayRadio string `json:"playRadio"` ProgramName string `json:"programName"` ChannelCollect bool `json:"channel_collect"` }
RadioData is the json of `http://hichannel.hinet.net/radio/play.do?id=232`
type RadioListData ¶
type RadioListData struct { PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` List []RadioListDatas `json:"list"` }
RadioListData is the json of `http://hichannel.hinet.net/radio/channelList.do?radioType=&freqType=&freq=&area=&pN=1`
type RadioListDatas ¶
type RadioListDatas struct { ChannelImage string `json:"channel_image"` ChannelTitle string `json:"channel_title"` RadioType string `json:"radio_type"` IsChannel bool `json:"isChannel"` ProgramName string `json:"program_name"` ChannelID string `json:"channel_id"` }
RadioListDatas is RadioListData.List type.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
gohinetradio
Package main is to play radio with VLC(mac).
|
Package main is to play radio with VLC(mac). |
Click to show internal directories.
Click to hide internal directories.