musicfix

music file renamer and tagger
git clone git://git.2f30.org/musicfix
Log | Files | Refs | README | LICENSE

commit d17d7515cef992bf01d744945f66f9ad0089d014
parent c536145090a462369a587e3609252784e02c9a39
Author: lostd <lostd@2f30.org>
Date:   Mon, 11 Nov 2013 11:12:01 +0000

Use proper headers to get artwork also

Diffstat:
Mbin/musicfix | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/musicfix b/bin/musicfix @@ -331,7 +331,7 @@ imgname = eval cfg['image'] if rel['imgurl'] then puts "Save cover to #{imgname}" unless fake - img = open(rel['imgurl'], {"User-Agent" => "Mozilla 5.0"}).read + img = open(rel['imgurl'], Headers).read File.open(imgname, 'wb').write img end end