types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2020 The Pachinko Authors

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

View Source
var ArchiveExtensions = []string{
	"7z",
	"gz",
	"gzip",
	"rar",
	"tar",
	"zip",
}
View Source
var AudioChannels = map[string]*regexp.Regexp{
	"2.0": regexp.MustCompile(`2\.0`),
	"5.1": regexp.MustCompile(`5\.1`),
	"7.1": regexp.MustCompile(`7\.1`),
}

AudioChannels audiochannels

View Source
var AudioFormats = map[string]*regexp.Regexp{
	"aac": regexp.MustCompile("aac"),
}

AudioFormats audioformats

View Source
var ColorFormats = map[string]*regexp.Regexp{
	"8 bit":  regexp.MustCompile(`8.bit`),
	"10 bit": regexp.MustCompile(`10.bit`),
}

ColorFormats colorformats

View Source
var ExecutableExtensions = []string{
	"exe",
}
View Source
var ImageExtensions = []string{
	"bmp",
	"gif",
	"heic",
	"jpeg",
	"jpg",
	"png",
	"tiff",
}
View Source
var Resolutions = map[string]*regexp.Regexp{
	"1080p": regexp.MustCompile(`\b1080p?`),
	"720p":  regexp.MustCompile(`\b720p?`),
	"480p":  regexp.MustCompile(`\b480p?`),
}

Resolutions resolutions

View Source
var Sources = map[string]*regexp.Regexp{
	"bluray": regexp.MustCompile("bluray"),
	"dvd":    regexp.MustCompile("dvd"),
	"hdtv":   regexp.MustCompile("hdtv"),
}

Sources sources

View Source
var SubtitleExtensions = []string{
	"srt",
	"sub",
}
View Source
var TVSeason = map[string]*regexp.Regexp{
	"season": regexp.MustCompile("season|series"),
}

TVSeason season

View Source
var TextExtensions = []string{
	"info",
	"nfo",
	"txt",
	"website",
}
View Source
var VideoExtensions = []string{
	"avi",
	"divx",
	"m4v",
	"mkv",
	"mov",
	"mp4",
	"xvid",
}
View Source
var VideoFormats = map[string]*regexp.Regexp{
	"hevc":  regexp.MustCompile("hevc"),
	"h.264": regexp.MustCompile(`h\.?264`),
	"h.265": regexp.MustCompile(`h\.?265`),
	"mov":   regexp.MustCompile(`\bmov\b`),
	"mpeg":  regexp.MustCompile("mpeg"),
	"x264":  regexp.MustCompile(`x\.?264`),
	"x265":  regexp.MustCompile(`x\.?265`),
}

VideoFormats videoformats

Functions

This section is empty.

Types

type Category

type Category string
const (
	Archive  Category = "archive"
	Image    Category = "image"
	Subtitle Category = "subtitle"
	Text     Category = "text"
	Unknown  Category = ""
	Video    Category = "video"
)

type FileType added in v0.5.0

type FileType int
const (
	Directory FileType = iota
	File
)

type Item added in v0.5.0

type Item struct {
	Category        Category
	Delete          bool
	DestinationPath string
	FileType        FileType
	Identifiers     map[string]string
	MediaType       metadata.MediaType
	MovieMetadata   movie.Metadata
	SourcePath      string
	TVMetadata      tv.Metadata
	VideoMetadata   video.Metadata
}

Item is the container struct for a file flowing through the entire pipeline

func (*Item) String added in v0.5.0

func (m *Item) String() string

String string TODO

Directories

Path Synopsis
tv

Jump to

Keyboard shortcuts

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