Commit 5d19df48 authored by Christof Gerber's avatar Christof Gerber
Browse files

add hint about update upon errors to

parent fdbf50fb
# youtube-dl
Upon Errors make sure the most recent version is installed:
sudo -H pip install --upgrade youtube-dl
Download video
......@@ -39,15 +39,15 @@ func TestListSubs(t *testing.T) {
assert.Equal(t, "ttml", subs.AutomaticCaptions["en"][1])
assert.Equal(t, "vtt", subs.Subtitles["en"][0])
assert.Equal(t, "ttml", subs.Subtitles["en"][1])
assert.Equal(t, 35, len(subs.Subtitles))
assert.Equal(t, 104, len(subs.AutomaticCaptions))
assert.Equal(t, true, len(subs.Subtitles) > 0)
assert.Equal(t, true, len(subs.AutomaticCaptions) > 0)
func TestFindSub(t *testing.T) {
formats, err := findSub("OsFEV35tWsg", "en")
assert.Equal(t, nil, err)
assert.Equal(t, 2, len(formats))
assert.Equal(t, true, len(formats) > 0)
assert.Equal(t, "vtt", formats[0])
assert.Equal(t, "ttml", formats[1])
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