Skip to content

Commit

Permalink
tests: 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed May 22, 2018
1 parent cbf645f commit 93933d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (v VideoData) Download(refer string) {
}
data, ok := v.Formats[format]
if !ok {
log.Println(v)
log.Fatal("No format named " + format)
}
if data.Size == 0 {
Expand Down
4 changes: 2 additions & 2 deletions extractors/bcy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ func TestBcy(t *testing.T) {
name: "normal test",
args: test.Args{
URL: "https://bcy.net/illust/detail/38134/2048276",
Title: "牛奶",
Title: "牛奶小姐姐,草莓味的w - 半次元-二次元爱好者社区",
},
},
{
name: "normal test",
args: test.Args{
URL: "https://bcy.net/coser/detail/143767/2094010",
Title: "命运石之门助手cos预告",
Title: "phx:柠檬先行预告!牧濑红莉栖 cn:三度 - 半次元-二次元爱好者社区",
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions extractors/instagram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ func TestInstagram(t *testing.T) {
name: "Video",
args: test.Args{
URL: "https://www.instagram.com/p/BYQ0PMWlAQY",
Title: "王薇雅🇨🇳🇺🇸 on Instagram:“我的Ins是用来分享#lifestyle 一些正能量健身旅游等,请那些负能量离我远点!谢谢😀😀BTW,我从来不否认我P图微调,谁都想展现自己最完美的一面在网上.不要再给我粉丝私信黑我了,那么空能不能多读书看报增加些涵养🙂🙂🙂”",
Title: "王薇雅🇨🇳🇺🇸 on Instagram:“我的Ins是用来分享#lifestyle 一些正能量健身旅游等,请那些负能量离我远点!谢谢😀😀BTW,我从来不...",
Size: 1469037,
},
},
{
name: "Image Single",
args: test.Args{
URL: "https://www.instagram.com/p/Bei7whzgfMq",
Title: "王薇雅🇨🇳🇺🇸 on Instagram:“Let go of what u can no longer keep. Protect what’s still worth keeping. ✨✨✨”",
Title: "王薇雅🇨🇳🇺🇸 on Instagram:“Let go of what u can no longer keep. Protect what’s sti...",
Size: 144348,
},
},
Expand Down

0 comments on commit 93933d6

Please sign in to comment.