playlist

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPathTags

func ExtractPathTags(path []string) []string

func Overlap

func Overlap(tags []string, ignoretags map[string]struct{}) bool

Types

type Header struct {
	Hash  string `json:"hash"`
	Name  string `json:"name"`
	Files int    `json:"files"`
}

type Item

type Item struct {
	Name     string   `json:"name"`
	NameOrig string   `json:"name_orig"`
	Ext      string   `json:"ext"`
	MIME     string   `json:"mime"`
	Size     int64    `json:"size"`
	Path     []string `json:"path"`

	Tags []string `json:"tags"`
}

type PlayList

type PlayList struct {
	Header  Header `json:"header"`
	Content []Item `json:"content"`

	Torr       *torrent.Torrent    `json:"-"`
	Whitelist  map[string]struct{} `json:"-"`
	IgnoreTags map[string]struct{} `json:"-"`
}

func (*PlayList) Render

func (p *PlayList) Render(w http.ResponseWriter, r *http.Request) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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