client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BaseURL = "https://downloads.khinsider.com"
View Source
const DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	Title    string
	URL      string
	Platform string
	Type     string
	Year     string
}

type AlbumDetails

type AlbumDetails struct {
	Title string
	Songs []Song
}

type Client

type Client struct {
	UserAgent string
	HTTP      tls_client.HttpClient
}

func NewClient

func NewClient() *Client

func (*Client) GetAlbumDetails

func (c *Client) GetAlbumDetails(albumURL string) (AlbumDetails, error)

func (*Client) GetDownloadURL

func (c *Client) GetDownloadURL(songURL string, format string) (string, error)

func (*Client) Search

func (c *Client) Search(query string) ([]Album, error)

func (*Client) SetBrowserHeaders

func (c *Client) SetBrowserHeaders(req *fhttp.Request)

type Song

type Song struct {
	Number   string
	Title    string
	URL      string // Page URL
	Duration string
	MP3Size  string
	FLACSize string
}

Jump to

Keyboard shortcuts

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