Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintDebugJSON ¶
func PrintDebugJSON(debugInfo *DebugInfo)
PrintDebugJSON formats and prints DebugInfo as JSON to stdout. Used by the debug command to output debug information.
Types ¶
type DebugInfo ¶
type DebugInfo struct {
MediaTitle string
EpisodeTitle string
EpisodeNumber int
StreamURL string
Quality providers.Quality
Type providers.StreamType
Referer string
Headers map[string]string
Subtitles []providers.Subtitle
Error error
}
DebugInfo holds the debug information for media
func Start ¶
func Start(providers map[providers.MediaType]providers.Provider, trackerMgr interface{}, db *gorm.DB, cfg interface{}, logger *slog.Logger, audioPreference string) *DebugInfo
Start is the entry point for the TUI. Returns debug information if in debug mode, otherwise nil.
func StartDebugLinks ¶
func StartDebugLinks(providers map[providers.MediaType]providers.Provider, trackerMgr interface{}, db *gorm.DB, cfg interface{}, logger *slog.Logger, audioPreference string) *DebugInfo
StartDebugLinks is the entry point for the TUI in debug links mode. Returns debug information that should be printed after TUI exit.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.