kuwo

package
v0.0.0-...-92b59c9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SearchSongURL = "http://www.kuwo.cn/api/www/search/searchMusicBykeyWord?key=%s&pn=1&rn=30"
)

Variables

View Source
var (
	SECRET_KEY = []byte("ylzsxkwm")

	DesModeEncrypt = 0
	DesModeDecrypt = 1
)

Thanks to https://github.com/Levi233/MusicPlayer/blob/master/app/src/main/java/com/chenhao/musicplayer/utils/crypt/KuwoDES.java

Functions

func Encrypt

func Encrypt(src []byte) []byte

Types

type KuWo

type KuWo struct{}

func (*KuWo) GetSongUrl

func (m *KuWo) GetSongUrl(searchSong common.SearchMusic, song *common.Song) *common.Song

func (*KuWo) ParseSong

func (m *KuWo) ParseSong(searchSong common.SearchSong) *common.Song

func (*KuWo) SearchSong

func (m *KuWo) SearchSong(song common.SearchSong) (songs []*common.Song)

Jump to

Keyboard shortcuts

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