You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
419 B
24 lines
419 B
4 years ago
|
/* youtube-ma for MongoDB
|
||
|
*
|
||
|
* Based on https://github.com/CorentinB/youtube-ma */
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
"github.com/terorie/youtube-mango/data"
|
||
|
"github.com/terorie/youtube-mango/classic"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
v := data.Video{ID: "kj9mFK62c6E"}
|
||
|
|
||
|
err := classic.Get(&v)
|
||
|
if err != nil { panic(err) }
|
||
|
|
||
|
jsn, err := json.MarshalIndent(v, "", "\t")
|
||
|
if err != nil { panic(err) }
|
||
|
|
||
|
println(string(jsn))
|
||
|
}
|