diff --git a/cmd/streamdata/format.go b/cmd/streamdata/format.go index 0b4cf8b..85271fb 100644 --- a/cmd/streamdata/format.go +++ b/cmd/streamdata/format.go @@ -8,9 +8,14 @@ import ( // printVOD prints a text representation of [streamdata.VOD] to stdout. func printVOD(v *streamdata.VOD) { - fmt.Println("Title :", v.Title) - fmt.Println("Date :", v.Date.Format("2006-01-02")) + date := v.Date.Format("2006-01-02") + + fmt.Println("Title :", v.Title) + fmt.Println("Date :", date) if v.Category != "" { - fmt.Println("Category:", v.Category) + fmt.Println("Category :", v.Category) + fmt.Printf("YouTube : %s | %s | %s\n", v.Title, v.Category, date) + } else { + fmt.Printf("YouTube : %s | %s\n", v.Title, date) } }