radigo

package module
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

README

radigo

下载 timeshift 的音频,IP限制请自行解决,提供proxy参数使用。

Documentation

Index

Constants

View Source
const (
	UserAgent string = "" /* 131-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func GenPartialkey

func GenPartialkey(jskey string, offset int64, length int64) (partialkey string)

GenPartialkey Gen Partialkey

func GetJSKey

func GetJSKey(isUpdate bool) (jskey string)

GetJSKey

Filter JS Auth Key
This value is generally fixed
isUpdate: true / false

func RegionXML

func RegionXML(searchType string, keyword string) (result string)

RegionXML Filter Region Data

Types

type RadioAPI

type RadioAPI struct {
	Area      string
	Token     string
	KeyLength int64
	KeyOffset int64
}

func (*RadioAPI) AudioList

func (radio *RadioAPI) AudioList(data *RadioParams, interval int64) (audioURLs []string)

AudioList Get AAC List

interval: recommend 5s

func (*RadioAPI) Auth1

func (radio *RadioAPI) Auth1()

Auth1 Filter token / offset / length

func (*RadioAPI) Auth2

func (radio *RadioAPI) Auth2(isUpdate bool)

Auth2 Filter Area

isUpdate: Update JS Key
Usually no update is required (false)

func (*RadioAPI) RegionCheck

func (radio *RadioAPI) RegionCheck(stationID string) (result bool)

RegionCheck Check IP Region

func (*RadioAPI) SetS5Proxy

func (radio *RadioAPI) SetS5Proxy(address string)

SetS5Proxy Set a socks5 proxy

type RadioParams

type RadioParams struct {
	StationID string
	StartAt   string
	EndAt     string
	Ft        string
	To        string
}

RadioParams Request Body

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL