Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayHistory ¶
func DisplayHistory(cfg *Settings)
DisplayHistory simply load the settings and display the titles, providers, download path and last dowloaded chapter, and highlight mangas that have available new chapters
func IsSettingsExisting ¶
func IsSettingsExisting() bool
IsSettingsExisting allows to check if the settings file already exists or no
func SearchLastChapter ¶
SearchLastChapter send the last chapter in the history for a manga, or 1 if no history exists yet
func WriteDefaultSettings ¶
func WriteDefaultSettings()
WriteDefaultSettings write the default settings
func WriteSettings ¶
func WriteSettings(settings Settings)
WriteSettings write a settings file. used to change the default config or add manga to history download
Types ¶
type Config ¶
Config only store the default configuration, like output path, provider and if we have to use directories to store mangas
type History ¶
type History struct {
Titles []Manga `json:"titles"`
}
History is the manga download history, so it's an array of all the mangas we are downloading
type Manga ¶
type Manga struct { Title string `json:"title"` Chapter int `json:"chapter"` Provider string `json:"provider"` }
Manga keep the download history for every mangas that we are suscribing