commit dd3bdb7f8a1dd15bdcbb0e212cfb2c8a18e8bd03 parent dd131c1298348992febac65ee388d05c0db72de9 Author: lostd <lostd@2f30.org> Date: Sun, 7 Jul 2013 20:49:10 +0000 Fix pixogs user agent filtering Diffstat:
M | bin/musicfix | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/musicfix b/bin/musicfix @@ -295,7 +295,7 @@ imgname = eval cfg['image'] if rel['imgurl'] then puts "Save cover to #{imgname}" unless fake - img = open(rel['imgurl'], {"User-Agent" => "Mozilla"}).read + img = open(rel['imgurl'], {"User-Agent" => "Mozilla 5.0"}).read File.open(imgname, 'wb').write img end end