musicfix

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

commit 7f70e5fce32a97e66238d9e6fe33339d19bdcbf1
parent 8d1dbe70e5508fc619aa42e684c64db8f68f7a0c
Author: lostd <lostd@2f30.org>
Date:   Tue,  2 Jun 2015 14:10:30 +0100

Handle the image as a file if we have it locally

Diffstat:
Mbin/musicfix | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/musicfix b/bin/musicfix @@ -457,11 +457,11 @@ if rel['imgurl'] then unless fake # Relative path or URL if File.exists? rel['imgurl'] - img = open(rel['imgurl']).read + FileUtils.copy rel['imgurl'], imgname else img = open(rel['imgurl'], Headers).read + File.open(imgname, 'wb').write img end - File.open(imgname, 'wb').write img # Update to local relative path now rel['imgurl'] = File.basename imgname end