zingmp3

package
v0.0.0-...-e82a829 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpStream  = "https://zing-mp3.glitch.me/?url="
	Song      = "https://zingmp3.vn/bai-hat"
	VideoClip = "https://zingmp3.vn/video-clip"
)
View Source
const (
	Normal int64 = 128
	VIP    int64 = 320
)
View Source
const (
	SD_360       int64 = 360
	SD_480       int64 = 480
	HD_720       int64 = 720
	FULL_HD_1080 int64 = 1080
)

Variables

This section is empty.

Functions

func Download

func Download(obj *DownloadObject, downloadFolder string) error

Types

type DownloadObject

type DownloadObject struct {
	Title       string
	Artist      string
	DownloadUrl string
	Type        string
}

type SongInfo

type SongInfo struct {
	Title  string `json:"title"`
	Artist string `json:"artist"`
	Source struct {
		Video struct {
			Num360 struct {
				View     string `json:"view"`
				Download string `json:"download"`
			} `json:"360"`
			Num480 struct {
				View     string `json:"view"`
				Download string `json:"download"`
			} `json:"480"`
			Num720 struct {
				View     string `json:"view"`
				Download string `json:"download"`
			} `json:"720"`
			Num1080 struct {
				View     string `json:"view"`
				Download string `json:"download"`
			} `json:"1080"`
		} `json:"video"`
		Audio struct {
			Num128 struct {
				View     string `json:"view"`
				Download string `json:"download"`
			} `json:"128"`
			Num320 struct {
				View     string `json:"view"`
				Download string `json:"download"`
			} `json:"320"`
		} `json:"audio"`
	} `json:"source"`
}
func GetDownloadLinks(zingMp3Url string) (*SongInfo, error)

Jump to

Keyboard shortcuts

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