deezer

package
v1.17.7 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: OSL-3.0 Imports: 9 Imported by: 0

README

Deezer

Download audio from Deezer

  1. http://www.deezer.com/login
  2. Web Developer
  3. Network
  4. Log in
  5. Network Settings
  6. Save All As HAR

CDN

Note that two CDN are available, but the HTTP one seems to be faster, perhaps because HTTPS overhead is not used:

After some testing, this cookie seems to expire about three hours from last use. So if you use it once every three hours, it should stay alive, but I would need to do more testing to know for sure.

Repos

language link
C https://github.com/yne/dzr
Go https://github.com/godeezer/lib
Go https://github.com/moon004/Go-deezer-downloader
JavaScript https://github.com/svbnet/diezel

Documentation

Overview

Deezer

Index

Constants

View Source
const (
	FLAC    = '9'
	MP3_320 = '3'
)
View Source
const GatewayWWW = "http://www.deezer.com/ajax/gw-light.php"

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(sngID string, data []byte) error

Given SNG_ID and byte slice, decrypt byte slice in place.

Types

type Track

type Track struct {
	ART_NAME      string
	MD5_ORIGIN    string
	MEDIA_VERSION string
	SNG_TITLE     string
}

func NewTrack

func NewTrack(sngID, arl, sID string) (*Track, error)

Given a SNG_ID string, make a "deezer.pageTrack" request and return the result.

func (Track) Source

func (t Track) Source(sngID string, format rune) (string, error)

Given SNG_ID and file format, return audio URL.

type UserData

type UserData struct {
	Results struct {
		CheckForm string
		User      struct {
			Options struct {
				License_Token string
			}
		}
	}
	SID string
}

func NewUserData

func NewUserData(arl string) (*UserData, error)

Jump to

Keyboard shortcuts

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