0

Album cover display fix for some players

This commit is contained in:
Kaimi
2015-08-19 17:12:11 +03:00
parent 6e5fd4aec5
commit 6ef04a1835

View File

@@ -107,6 +107,7 @@ if($opt->dir && !-d $opt->dir)
exit; exit;
} }
MP3::Tag->config('id3v23_unsync', 0);
my ($whole_file, $total_size); my ($whole_file, $total_size);
my $ua = LWP::UserAgent->new(agent => AGENT, cookie_jar => new HTTP::Cookies, timeout => TIMEOUT); my $ua = LWP::UserAgent->new(agent => AGENT, cookie_jar => new HTTP::Cookies, timeout => TIMEOUT);
my $json_decoder = JSON::PP->new->utf8->pretty->allow_nonref->allow_singlequote; my $json_decoder = JSON::PP->new->utf8->pretty->allow_nonref->allow_singlequote;
@@ -710,9 +711,10 @@ sub info
# Func, line, msg # Func, line, msg
$msg = (caller(1))[3] . "(" . (caller(0))[2] . "): " . $msg; $msg = (caller(1))[3] . "(" . (caller(0))[2] . "): " . $msg;
} }
# Actual terminal width detection?
$msg = Term::ANSIColor::colored('['.$type.']', $log_colors{$type}) . ' ' . $msg; $msg = Term::ANSIColor::colored('['.$type.']', $log_colors{$type}) . ' ' . $msg;
$msg .= ' ' x (80 - length($msg) - length($\)); # Actual terminal width detection?
$msg = sprintf('%-80s', $msg);
print $msg; print $msg;
} }