kp

package module
v0.0.0-...-e8902bc Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Overview

Package can get most wanted data by title of film. It uses in github.com/error0x001/go-torrents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KPData

type KPData struct {
	// contains filtered or unexported fields
}

KPData is a struct with the KP rating and the link to KP.

func GetKPData

func GetKPData(t string, cl *http.Client, userAgent string) (*KPData, error)

func (*KPData) GetRating

func (kd *KPData) GetRating() float64

GetRating returns the rating of the movie from KP.

func (*KPData) GetTitle

func (kd *KPData) GetTitle() string

GetTitle returns the title of the movie from KP.

func (*KPData) GetURL

func (kd *KPData) GetURL() string

GetURL returns the URL to the movie from KP.

Jump to

Keyboard shortcuts

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