helpers

package
v0.0.0-...-22766dc Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(bts *torr.BTServer, magnet metainfo.Magnet, save bool) error

func FindFile

func FindFile(fileInd int, tor *torr.Torrent) *torrent.File
func FindFileLink(fileLink string, torr *torrent.Torrent) *torrent.File

func GetMagnet

func GetMagnet(link string) (*metainfo.Magnet, error)

func GetMimeType

func GetMimeType(filename string) string

func GetPlayableFiles

func GetPlayableFiles(st torr.TorrentStats) []torr.TorrentFileStat

func MakeM3ULists

func MakeM3ULists(torrents []*settings.Torrent, host string) string

func MakeM3UPlayList

func MakeM3UPlayList(tor torr.TorrentStats, magnet string, host string) string

Types

type SeekingBuffer

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

func NewSeekingBuffer

func NewSeekingBuffer(str string) *SeekingBuffer

func (*SeekingBuffer) Read

func (fb *SeekingBuffer) Read(p []byte) (n int, err error)

func (*SeekingBuffer) Seek

func (fb *SeekingBuffer) Seek(offset int64, whence int) (ret int64, err error)

Jump to

Keyboard shortcuts

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