コード例 #1
0
ファイル: list.go プロジェクト: bogem/nehm
func showListOfTracks(cmd *cobra.Command, args []string) {
	initializeConfig(cmd)
	config.Set("UID", client.UID(config.Get("permalink")))

	tp := tracksprocessor.NewConfiguredTracksProcessor()

	tm := ui.TracksMenu{
		GetTracks: listGetTracks,
		Limit:     limit,
		Offset:    offset,
	}
	downloadTracks := tm.Show()

	tp.ProcessAll(downloadTracks)
}
コード例 #2
0
ファイル: get.go プロジェクト: bogem/nehm
func getLastTracks(count uint) ([]track.Track, error) {
	uid := client.UID(config.Get("permalink"))
	return client.Favorites(count, offset, uid)
}