To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit b2de97fc authored by Christof Gerber's avatar Christof Gerber
Browse files

Avoid vtt subtitle

parent 7baf0e63
......@@ -32,12 +32,12 @@ const (
SubTTML SubtitleFormat = "ttml"
)
var SupportedSubs = map[SubtitleFormat]bool{
SubVTT: true,
SubSRT: true,
SubSSA: true,
SubSTL: true,
SubTTML: true,
var SupportedSubs = map[SubtitleFormat]string{
//SubVTT: "",
SubSRT: "",
SubSSA: "",
SubSTL: "",
SubTTML: "",
}
type ErrYoutubeDLLangNotSupported string
......
......@@ -11,6 +11,8 @@ import (
func TestGetPlaylistVideos(t *testing.T) {
log.SetLevel(log.TraceLevel)
videos, err := GetPlaylistVideos("PLpTJzCmGYaZFjE7jfH1tKFZt9rtqvvuj0", os.Getenv("YOUTUBE_DATA_API_KEY"))
assert.Equal(t, nil, err)
assert.Equal(t, 3, len(videos))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment