svtplay-dl: style tweak

This commit is contained in:
Dominyk Tiller 2018-08-25 17:33:50 +01:00
parent 0cb9a00c0e
commit a17d7986b9
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -69,7 +69,11 @@ class SvtplayDl < Formula
test do
url = "https://tv.aftonbladet.se/abtv/articles/244248"
assert_match "https://absvpvod-vh.akamaihd.net/i/2018/02/cdaefe0533c2561f00a41c52a2d790bd/,1280_720_2800,960_540_1500,640_360_800,480_270_300,.mp4.csmil/index_0_av.m3u8",
shell_output("#{bin}/svtplay-dl -g #{url}")
match = <<~EOS
https://absvpvod-vh.akamaihd.net/i/2018/02/cdaefe0533c2561f00a41c52a2d790bd
/,1280_720_2800,960_540_1500,640_360_800,480_270_300,.mp4.csmil
/index_0_av.m3u8
EOS
assert_match match.delete!("\n"), shell_output("#{bin}/svtplay-dl -g #{url}")
end
end