示例#1
0
文件: ui.go 项目: gitter-badger/getme
// 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)
}
示例#2
0
文件: ui.go 项目: gitter-badger/getme
func updateShow(show *store.Show) error {
	fmt.Printf("Updating '%s'", show.Title)

	c := startProgressBar()
	defer stopProgressBar(c)

	return sources.UpdateSeasonsAndEpisodes(show)
}