"Fossies" - the Fresh Open Source Software Archive

Member "pacpl-code/patches/fix_wma_tag_names.patch" (22 Aug 2019, 2003 Bytes) of package /linux/privat/pacpl-6.1.3.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 diff --git a/pacpl.in b/pacpl.in
    2 index 5b9f7c2..341e680 100644
    3 --- a/pacpl.in
    4 +++ b/pacpl.in
    5 @@ -2965,13 +2965,13 @@ when (/^ape$|^mpc$|^mpp$|^wv$/) {
    6                   when (/^wma$/) {
    7                                          my $wma_tag = $tag_module->scan_tags($in_file)->{tags};
    8  
    9 -                                           $tag_name{title}   = $wma_tag->{TITLE}       if $wma_tag->{TITLE};
   10 -                                           $tag_name{track}   = $wma_tag->{TRACKNUMBER} if $wma_tag->{TRACKNUMBER};
   11 -                                           $tag_name{artist}  = $wma_tag->{AUTHOR}      if $wma_tag->{AUTHOR};
   12 -                                           $tag_name{album}   = $wma_tag->{ALBUMTITLE}  if $wma_tag->{ALBUMTITLE};
   13 -                                           $tag_name{comment} = $wma_tag->{DESCRIPTION} if $wma_tag->{DESCRIPTION};
   14 -                                           $tag_name{year}    = $wma_tag->{YEAR}        if $wma_tag->{YEAR};
   15 -                                           $tag_name{genre}   = $wma_tag->{GENRE}       if $wma_tag->{GENRE};
   16 +                                           $tag_name{title}   = $wma_tag->{Title}      if $wma_tag->{Title};
   17 +                                           $tag_name{track}   = $wma_tag->{'WM/TrackNumber'}   if $wma_tag->{'WM/TrackNumber'};
   18 +                                           $tag_name{artist}  = $wma_tag->{'WM/AlbumArtist'}   if $wma_tag->{'WM/AlbumArtist'};
   19 +                                           $tag_name{album}   = $wma_tag->{'WM/AlbumTitle'}    if $wma_tag->{'WM/AlbumTitle'};
   20 +                       $tag_name{comment} = $wma_tag->{'WM/Description'}   if $wma_tag->{'WM/Description'};
   21 +                                           $tag_name{year}    = $wma_tag->{'WM/Year'}      if $wma_tag->{'WM/Year'};
   22 +                                           $tag_name{genre}   = $wma_tag->{'WM/Genre'}     if $wma_tag->{'WM/Genre'};
   23                              
   24                                          return 0;
   25                                  }