Documentation ¶
Index ¶
- type Service
- func (s *Service) InitializeWD(path string) error
- func (s *Service) List(wd string, extensions []string, regExp *regexp.Regexp) []string
- func (s *Service) LoadTVShows(wd string, extensions []string, subtitlesExt *string, subtitlesLangs []string, ...) ([]*model.TVShow, error)
- func (s *Service) ParseTitle(filename string) (*ptn.TorrentInfo, error)
- func (s *Service) PrepareDirectory(targetDirectory string, owner, group int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct{}
func (*Service) InitializeWD ¶
Verifies that given path exists and sets WD variable
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 ¶
Creates target directory, setting its mode to 755 and setting ownership
Click to show internal directories.
Click to hide internal directories.