Added
Link Here
|
1 |
--- src/ext/FileMagic.pm.orig 2009-07-11 00:20:05.000000000 +0100 |
2 |
+++ src/ext/FileMagic.pm 2022-07-03 22:22:24.750066000 +0100 |
3 |
@@ -362,7 +362,7 @@ |
4 |
foreach (keys(%{$in})) { |
5 |
my $kvp = __flatten($_, $exclude); # key |
6 |
next if !defined($kvp); |
7 |
- my $v = __flatten(%{$in}->{$_}, $exclude); # value |
8 |
+ my $v = __flatten({$in->{$_}}, $exclude); # value |
9 |
$kvp .= " : ".$v if (defined($v) && ("$v" ne "")); |
10 |
push @out, $kvp; |
11 |
} |
12 |
@@ -418,9 +418,9 @@ |
13 |
my $case = "check"; |
14 |
|
15 |
if (ref($options) eq "HASH") { |
16 |
- $joinby = %{$options}->{joinby} if defined(%{$options}->{joinby}); |
17 |
- $wspace = lc(%{$options}->{wspace}) if defined(%{$options}->{wspace}); |
18 |
- $case = lc(%{$options}->{case}) if defined(%{$options}->{case}); |
19 |
+ $joinby = $options->{joinby} if $options->{joinby}; |
20 |
+ $wspace = lc($options->{wspace}) if $options->{wspace}; |
21 |
+ $case = lc($options->{case}) if $options->{case}; |
22 |
} |
23 |
my $merged = ""; |
24 |
|
25 |
--- src/ext/XMLhelper.pm.orig 2009-07-11 00:20:05.000000000 +0100 |
26 |
+++ src/ext/XMLhelper.pm 2022-07-03 22:22:34.918120000 +0100 |
27 |
@@ -359,7 +359,7 @@ |
28 |
print OUT " </smartplaylist>\n"; |
29 |
} |
30 |
elsif(my $phr = get_plpref($current_plname)) { #plprefs found.. |
31 |
- if (defined(@{$XDAT->{playlists}->{data}->{$current_plname}})) { #the playlist is not empty |
32 |
+ if (@{$XDAT->{playlists}->{data}->{$current_plname}}) { #the playlist is not empty |
33 |
print OUT "\n ".mkfile({playlist=>$phr}, {return=>1,noend=>1})."\n"; |
34 |
foreach(@{$XDAT->{playlists}->{data}->{$current_plname}}) { |
35 |
print OUT " $_\n"; |