Versions in this module Expand all Collapse all v0 v0.3.7 Sep 28, 2025 v0.3.6 Sep 28, 2025 Changes in this version + const APIEndpoint + const AppDescription + const AppLongDescription + const DefaultModulePath + const DefaultPieceLength + const DefaultTrackerURL + const GitHubOwner + const GitHubRepo + var AppName = "banned" + var ConfigFileName = "." + AppName + var DB *sql.DB + var DefaultTrackers = []string + func CheckChannelVideoCount(channelID string) (apiCount, dbCount int, needsSync bool, err error) + func CloseDB() error + func DownloadVideo(url, filename string) error + func Execute() + func GetDB() (*sql.DB, error) + func GetSetting(key string) (string, error) + func LogDebug(message string, args ...interface{}) + func NewMenu() menuModel + func RunChannelBrowserTUI(channels []Channel) error + func RunTUI() error + func SetSetting(key, value string) error + func StoreChannel(channel Channel) error + func StoreVideos(channelID string, videos []Video) error + func StoreVideosBatch(channelID string, videos []Video) error + func UpdateVideoFileSize(videoID string, fileSize int64) error + type Channel struct + Avatar string + CoverImage string + ID string + IsLive bool + Links *Links + ShowInfo *ShowInfo + Summary string + TextInfo string + Title string + TotalLikes float64 + TotalVideoViews float64 + TotalVideos float64 + Videos []Video + func GetAllChannels() ([]Channel, error) + func GetAllChannelsFromDB() ([]Channel, error) + type Client struct + APIEndpoint string + func NewClient(apiEndpoint string) *Client + func (c *Client) FetchAllChannels() error + func (c *Client) FetchAllVideos(channelID string) ([]Video, error) + func (c *Client) FetchAllVideosWithLimit(channelID string, maxVideos int) ([]Video, error) + func (c *Client) FetchChannelData(channelID string) error + func (c *Client) FetchVideos(channelID string, offset, limit int) ([]Video, error) + func (c *Client) GetChannelVideoCount(channelID string) (int, error) + func (c *Client) SyncAllChannelVideos() error + func (c *Client) SyncAllChannelVideosWithOptions(fetchFileSizes bool) error + func (c *Client) SyncChannelVideos(channelID string) error + func (c *Client) SyncChannelVideosWithOptions(channelID string, fetchFileSizes bool) error + func (c *Client) SyncChannels() error + type GetAllChannelsResponse struct + Data struct{ ... } + type GetChannelResponse struct + Data struct{ ... } + type GetChannelVideosResponse struct + Data struct{ ... } + type GitHubRelease struct + Assets []struct{ ... } + Body string + Draft bool + Name string + Prerelease bool + TagName string + type GraphQLRequest struct + OperationName string + Query string + Variables map[string]interface{} + type Links struct + Facebook string + Gab string + Minds string + SubscribeStar string + Telegram string + Twitter string + Website string + type ShowInfo struct + Phone string + Times string + type TorrentConfig struct + Comment string + OutputDir string + PieceLength int + Private bool + Tracker string + type Video struct + AngerCount int + CreatedAt string + DirectURL string + EmbedURL string + FileSize int64 + ID string + LargeImage string + LikeCount int + PlayCount int + Published bool + Summary string + Title string + VideoDuration float64 + func GetChannelVideos(channelID string, limit, offset int) ([]Video, error) + type VideoInfo struct + DirectURL string + Error error + FileSize int64 + ID string + Title string