musicfix

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

commit 7bf764142d501dc8945b993c060d18b15c99fdb6
parent 59f6e32a766e43cc06a9a3f9c9873366c1c9fa53
Author: lostd <lostd@2f30.org>
Date:   Tue, 14 Aug 2012 10:54:54 +0000

Fix crash when no cover available

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

diff --git a/bin/musicfix b/bin/musicfix @@ -90,9 +90,9 @@ end # Get cover artwork def getimgurl rel + return nil unless rel.images img = rel.images.select {|i| i.type == 'primary'}.first || - rel.images.first || - (return nil) + rel.images.first img.uri.gsub 'api.discogs.com', 's.dsimg.com' end