Example #1
0
// Lookup takes a show previously selected by the user and finds the seasons
// and episodes with it.
func Lookup(show *store.Show) error {
	fmt.Printf("Looking up seasons and episodes for '%s'", show.Title)
	c := startProgressBar()
	defer stopProgressBar(c)

	return sources.UpdateSeasonsAndEpisodes(show)
}
Example #2
0
func updateShow(show *store.Show) error {
	fmt.Printf("Updating '%s'", show.Title)

	c := startProgressBar()
	defer stopProgressBar(c)

	return sources.UpdateSeasonsAndEpisodes(show)
}