media

package
v0.0.0-...-66129a4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

func New

func New() *Service

func (*Service) InitializeWD

func (s *Service) InitializeWD(path string) error

Verifies that given path exists and sets WD variable

func (*Service) List

func (s *Service) List(wd string, extensions []string, regExp *regexp.Regexp) []string

Lists files in directory with filter on extensions and RegExp

func (*Service) LoadTVShows

func (s *Service) LoadTVShows(wd string, extensions []string, subtitlesExt *string, subtitlesLangs []string, anyFiles bool) ([]*model.TVShow, error)

Lists TV shows in folder that must be processed

func (*Service) ParseTitle

func (s *Service) ParseTitle(filename string) (*ptn.TorrentInfo, error)

Returns parsed information from a file name

func (*Service) PrepareDirectory

func (s *Service) PrepareDirectory(targetDirectory string, owner, group int)

Creates target directory, setting its mode to 755 and setting ownership

Jump to

Keyboard shortcuts

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