yanktv

package module
v0.0.0-...-f77cdc9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 11 Imported by: 0

README

yanktv

Scrape episodes for your favorite TV shows, from popular torrent site(s), and generate a simple and static page showing any found episodes.

Status

In beta

Installation

go install github.com/lmas/yanktv

Usage

TODO

Configuration

TODO

License

MIT License, see LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSite

func AddSite(s Site)

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(c Conf) (*App, error)

func (*App) GetTorrentsFromLastMonth

func (app *App) GetTorrentsFromLastMonth() ([]Torrent, error)

func (*App) Log

func (app *App) Log(msg string, args ...interface{})

func (*App) UpdateShows

func (app *App) UpdateShows() error

type Conf

type Conf struct {
	Verbose         bool
	DownloadTimeout int // in seconds
	Shows           []string
	OutputFile      string

	Database DatabaseConf
}

func LoadConf

func LoadConf(path string) (Conf, error)

type DatabaseConf

type DatabaseConf struct {
	Path string
}

type Site

type Site interface {
	Url(string) string
	ParseTorrents(string, *goquery.Document) []Torrent
}

func AllSites

func AllSites() []Site

type Torrent

type Torrent struct {
	Title     string
	MagnetUrl string
	Timestamp time.Time
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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