package
2.0.2+incompatible
Repository: https://github.com/ethanv2/podbit.git
Documentation: pkg.go.dev

# Functions

CleanData cleans out the cache based on items which are both finished/played and with a last listen time of more than EpisodeCacheTime seconds ago (defaults to three days).
FormatTime formats a time measured in seconds.
InitData initialises all dependent data structures The only returned errors *will* be fatal to the program.
IsURL returns true if a string is a valid HTTP(s) URL.
ReloadData performs a hot-reload of any data which can/needs to be hot reloaded This is called automatically on an interval by ReloadLoop and upon saving to ensure up-to-date data.
ReloadLoop is an infinite loop to continually reload the file on disk into memory.
SaveData cleans up and saves data to disk First ensures we have hot-reloaded any required data.

# Constants

DatabaseDirname is the directory name in which the database will be stored.
DatabaseFilename is the file name of the database on disk.
EpisodeCacheTime is how long an episode is allowed to stay in cache in seconds Default value is three days (3 * 24 * 60 * 60).
QueueFilename is the name of the file for the queue.
QueueReloadInterval is how often the queue will be reloaded.
Finished to the end.
Pending download.
Played at least once.
Downloaded and ready to play.
YouTube downloading constants.
YouTube downloading constants.
YouTube downloading constants.

# Variables

Dependent data structures.
Dependent data structures.
Possible cache errors.
Error values.
Error values.
Possible cache errors.
Possible cache errors.
Queue parsing/management errors.
Queue parsing/management errors.
Queue parsing/management errors.
Queue parsing/management errors.
PossibleDirs are the locations where the queue will search for a newsboat queue file.
Dependent data structures.
StateStrings are the names used to serialise or display queue statuses to the user.

# Structs

Cache is the current state of the on-disk cache and associated operations.
Database aggregates all podcast data from the database.
Download represents the statistics of a specific ongoing download.
Episode represents the data extracted from a single cached episode media entry.
Podcast is the human-provided podcast info.
Queue represents the newsboat queue.
QueueItem represents an item in the player queue as provided by newsboat.

# Type aliases

RangeFunc is the callback definition for a thread-safe cycle through the queue array.