app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppVersion      = "v0.0.1"
	BuildTime       = none
	GitCommit       = none
	GitRef          = none
	GitRepo         = "https://github.com/RoyalFlyBy/PornHubDownloader/"
	CurrentVersion  *ghvu.Version
	CurrentCodeBase *ghvu.CodeBase
)

ldflags

View Source
var FMTVars = []string{
	":VIDEO_NAME",
	":VIDEO_ID",
	":VIDEO_VIEW_KEY",
	":UPLOADER_NAME",
	":CHANNEL_NAME",

	":DATE_UPLOADED",
	":DATE_DOWNLOADED",

	":TIME_UPLOADED",
	":TIME_DOWNLOADED",

	":TS_UPLOADED",
	":TS_DOWNLOADED",
}

Functions

This section is empty.

Types

type App

type App struct {
	Cfg            *Config
	BLog           *bunnlog.BunnyLog
	Client         *utils.PHUtil
	DownloadClient *http.Client
	SessionFile    *os.File
	Stats          *download.GlobalDownloadController
	NameFormatter  *stringvarformatter.Formatter
}

func NewApp

func NewApp() (*App, error)

func (*App) ParseCfg

func (a *App) ParseCfg()

func (*App) SetupClient

func (a *App) SetupClient() error

func (*App) SetupHTTPClient

func (a *App) SetupHTTPClient() error

func (*App) SetupLogger

func (a *App) SetupLogger() error

func (*App) VersionRoutine

func (a *App) VersionRoutine() string

type Config

type Config struct {
	Video           string
	Videos          string
	NameFMT         string
	Username        string
	Password        string
	SessionFile     string
	DownloadThreads int
	Daemon          bool
	Debug           bool
	Version         bool
}

Jump to

Keyboard shortcuts

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