Skip to content

Commit

Permalink
extractors/youku: 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed Mar 20, 2018
1 parent ebe1e17 commit 4e97590
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extractors/youku.go
Expand Up @@ -40,7 +40,7 @@ type youkuData struct {
Data data `json:"data"`
}

var ccodes = []string{"0502", "0507", "0508", "0512", "0513", "0514"}
var ccodes = []string{"0507", "0508", "0512", "0513", "0514", "0503", "0502"}
var referer = "https://v.youku.com"

func youkuUps(vid string) youkuData {
Expand Down
8 changes: 4 additions & 4 deletions extractors/youku_test.go
Expand Up @@ -18,17 +18,17 @@ func TestYouku(t *testing.T) {
args: test.Args{
URL: "http://v.youku.com/v_show/id_XMzMzMDk5MzcyNA==.html",
Title: "鲜榨时尚:开口跪Jessie J歌声和造型双在线",
Size: 35174132,
Quality: "mp4hd3v2 1080x1920",
Size: 12568063,
Quality: "mp4hd2v2 720x1280",
},
},
{
name: "normal test",
args: test.Args{
URL: "http://v.youku.com/v_show/id_XMzQ1MTAzNjQwNA==.html",
Title: "这!就是街舞 第一季:第3期:百强“互杀”队长不忍直视",
Size: 1741044063,
Quality: "mp4hd3 1920x1080",
Size: 806126651,
Quality: "mp4hd2 1280x720",
},
},
}
Expand Down

0 comments on commit 4e97590

Please sign in to comment.