Documentation ¶
Index ¶
- func CleanFilename(name string) string
- func Delete(a ...string) error
- func GenerateEpisodeFilename(show string, season int, episode float64, desc string) string
- func Rename(src, dst string, i int) error
- type Episode
- type Episodes
- type Error
- type HTTPClient
- type Season
- type Seasons
- type Show
- type VideoProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanFilename ¶
CleanFilename cleans the filename of any illegal file characters to prevent write errors
func GenerateEpisodeFilename ¶
GenerateEpisodeFilename constructs an episode filename and returns the filename fully sanitized
Types ¶
type Episode ¶
type Episode interface { GetEpisodeInfo(client *HTTPClient, quality string) error Download(vp *VideoProcessor, testOnly bool) error DownloadSubtitles(client *HTTPClient, language, tempDir string) (string, error) GetFilename() string }
Episode implements Episode functionality
type Error ¶
Error represents a generic anirip error
type HTTPClient ¶
HTTPClient performs
func NewHTTPClient ¶
func NewHTTPClient() (*HTTPClient, error)
NewHTTPClient generates a new HTTPClient Requester that contains a random user-agent to emulate browser requests
type Show ¶
type Show interface { Scrape(client *HTTPClient, showURL string) error GetTitle() string GetSeasons() Seasons }
Show implements Show functionality
type VideoProcessor ¶
type VideoProcessor struct {
// contains filtered or unexported fields
}
func NewVideoProcessor ¶
func NewVideoProcessor(tempDir string) *VideoProcessor
NewVideoProcessor generates a new VideoProcessor that contains the location of our temporary directory
func (*VideoProcessor) DumpHLS ¶
func (p *VideoProcessor) DumpHLS(url string) error
DumpHLS dumps an HLS Stream to the temporary directory
func (*VideoProcessor) MergeSubtitles ¶
func (p *VideoProcessor) MergeSubtitles(audioLang, subtitleLang string) error
MergeSubtitles merges the VIDEO.mkv and the VIDEO.ass
Click to show internal directories.
Click to hide internal directories.