Documentation ¶
Index ¶
- Constants
- Variables
- func AskYNQuestion(question string, tries int, defaultInput bool, red bool) bool
- func AskYNTorrentLegalUsage() bool
- func HandleWatchMovie(url string) bool
- func HandleWatchTorrentMagnet(magnet string) bool
- func StartSpinner(id int, speed int)
- func StopSpinner()
- func UseNoResultFilter() models.ResultFilter
- func WaitInputIntFromCLI() int
- func WaitInputStringFromCLI() string
- type App
- func (a *App) AddToMovieLikeDB(info models.MovieInfo, liked bool) error
- func (a *App) AddToSearchHistoryDB(info models.MovieInfo, from string) error
- func (a *App) AddToWatchLaterDB(info models.MovieInfo, watched bool) error
- func (a *App) HandleHistoryRequest(c *cli.Context)
- func (a *App) HandleLearnRequest(c *cli.Context)
- func (a *App) HandleMyListRequest(c *cli.Context)
- func (a *App) HandleNoteRequest(c *cli.Context)
- func (a *App) HandleSearchTitleRequest(c *cli.Context)
- func (a *App) HandleTorrentRequest(c *cli.Context, movie *models.MovieInfo)
- func (a *App) HandleUpdateRequest(c *cli.Context)
- func (a *App) Initialize(config *config.Config)
- func (a *App) PostTrailerOperations(info models.MovieInfo, watched bool)
Constants ¶
View Source
const (
PATH_CONFIG_FILE = "config/config"
)
Variables ¶
View Source
var Config *config.Config
View Source
var DefaultPrinter *services.Printer
View Source
var DefaultSpinner *spinner.Spinner
Functions ¶
func AskYNQuestion ¶
Write an Ask(Y/N) question and wait an input
func AskYNTorrentLegalUsage ¶
func AskYNTorrentLegalUsage() bool
func HandleWatchMovie ¶
func StartSpinner ¶
func StopSpinner ¶
func StopSpinner()
func UseNoResultFilter ¶
func UseNoResultFilter() models.ResultFilter
Types ¶
type App ¶
func (*App) AddToMovieLikeDB ¶
func (*App) AddToSearchHistoryDB ¶
func (*App) AddToWatchLaterDB ¶
func (*App) HandleHistoryRequest ¶
func (*App) HandleLearnRequest ¶
func (*App) HandleMyListRequest ¶
func (*App) HandleNoteRequest ¶
func (*App) HandleSearchTitleRequest ¶
FIXME: Too long and hardcoded function, make it better
func (*App) HandleTorrentRequest ¶
func (*App) HandleUpdateRequest ¶
func (*App) Initialize ¶
Click to show internal directories.
Click to hide internal directories.