Documentation
¶
Index ¶
- Variables
- func AddPlayer()
- func ErrorMessage(err error)
- func GetInputProps() (string, int, func(text string), func(text string), ...)
- func InfoMessage(text string, persist bool)
- func Modify(add bool)
- func PlaySelected(audio, current bool)
- func RemovePlayer()
- func SearchAndList(text string)
- func SearchChannel(text string)
- func SetInput(label string, max int, dofunc func(text string), ...)
- func SetPlayer(play bool)
- func SetupFileBrowser()
- func SetupInputBox()
- func SetupList()
- func SetupMessageBox()
- func SetupPlayer()
- func SetupPlaylist()
- func SetupStatus()
- func SetupUI() error
- func ShowAuthPage()
- func ShowComments()
- func ShowDashboard()
- func ShowDownloadOptions()
- func ShowDownloadView()
- func ShowFileBrowser(inputText string, dofunc func(text string), exitfunc func())
- func StartPlayer()
- func StopPlayer(closeInstances bool)
- func StopStatus()
- func StopUI(closeInstances bool)
- func ViewChannel(vtype string, newlist, noload bool) error
- func ViewPlaylist(newlist, noload bool)
- type DownloadProgress
- type EntryData
Constants ¶
This section is empty.
Variables ¶
var ( // ResultsFlex contains the arranged page marker // and ResultsList table elements. ResultsFlex *tview.Flex // ResultsList is a table to display results. ResultsList *tview.Table )
var ( // Status enables switching between // MessageBox and InputBox. Status *tview.Pages //MessageBox is an area to display messages. MessageBox *tview.TextView )
var ( // App contains the application. App *tview.Application // UIFlex contains the arranged UI elements. UIFlex *tview.Flex // VPage holds the ResultsList and other list views // like the playlist view for example. VPage *tview.Pages // MPage holds the entire UI Flexbox. This is needed to // align and display popups properly. MPage *tview.Pages )
var ( // FileBrowser shows the file browser. FileBrowser *tview.Flex )
var ( // InputBox is an input area. InputBox *tview.InputField )
var ( // Player displays the media player. Player *tview.Flex )
var ( // Playlist shows the playlist popup Playlist *tview.Flex )
Functions ¶
func ErrorMessage ¶
func ErrorMessage(err error)
ErrorMessage sends an error message to the status bar.
func GetInputProps ¶ added in v0.2.0
func GetInputProps() (string, int, func(text string), func(text string), func(event *tcell.EventKey) *tcell.EventKey)
GetInputProps returns the InputBox's current properties.
func InfoMessage ¶
InfoMessage sends an info message to the status bar.
func Modify ¶ added in v0.2.3
func Modify(add bool)
Modify retrieves the reference from the table in focus, determines its type and runs the appropriate modification handler.
func PlaySelected ¶
func PlaySelected(audio, current bool)
PlaySelected plays the current selection.
func SearchAndList ¶
func SearchAndList(text string)
SearchAndList displays search results on the screen.
func SearchChannel ¶ added in v0.0.6
func SearchChannel(text string)
SearchChannel displays search results from the channel to the screen.
func SetInput ¶
func SetInput(label string, max int, dofunc func(text string), ifunc func(event *tcell.EventKey) *tcell.EventKey, chgfunc ...func(text string), )
SetInput sets up a custom label and function to be executed on pressing the Enter key in the inputbox.
func SetPlayer ¶
func SetPlayer(play bool)
SetPlayer sends a signal to StartPlayer on whether to start or stop the playback loop.
func SetupFileBrowser ¶ added in v0.0.2
func SetupFileBrowser()
SetupFileBrowser sets up the file browser popup.
func SetupMessageBox ¶
func SetupMessageBox()
SetupMessageBox sets up a text area to receive messages.
func ShowComments ¶ added in v0.2.2
func ShowComments()
ShowComments shows comments for the selected video.
func ShowDashboard ¶ added in v0.2.3
func ShowDashboard()
gocyclo: ignore ShowDashboard shows the dashboard.
func ShowDownloadOptions ¶ added in v0.2.6
func ShowDownloadOptions()
ShowDownloadOptions shows the download options for the video.
func ShowDownloadView ¶ added in v0.2.6
func ShowDownloadView()
ShowDownloadView opens the download view.
func ShowFileBrowser ¶ added in v0.0.2
ShowFileBrowser shows the filebrowser popup and the input area.
func StartPlayer ¶
func StartPlayer()
StartPlayer starts the player loop, which gets the information on the currently playing file from mpv, sets the media title and displays the relevant information along with a progress bar.
func ViewChannel ¶ added in v0.0.5
ViewChannel shows the playlist contents after loading the playlist URL.
func ViewPlaylist ¶ added in v0.0.5
func ViewPlaylist(newlist, noload bool)
ViewPlaylist shows the playlist contents after loading the playlist URL.
Types ¶
type DownloadProgress ¶ added in v0.2.6
type DownloadProgress struct {
// contains filtered or unexported fields
}
DownloadProgress stores the progress data.