gnump3d-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnump3d-users] Ogg tags error


From: Andrew McGuinness
Subject: [Gnump3d-users] Ogg tags error
Date: Sat, 19 Nov 2005 16:32:40 +0000
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050723)

The "very simplistic" oggtagreader.pm code doesn't work on my Ogg files - it produces a random punctuation character at the end of many of the Artist names.

The correct code for reading Ogg comment tags is in ogginfo.pm anyway - the following patch uses it instead of oggtagreader.pm . oggtagreader.pm becomes obsolete:

========================

darjeeling gnump3d $ diff readtags.pm.orig readtags.pm
9d8
< use gnump3d::oggtagreader;         # Local vorbis code
177,179c176,180
<
<     my $comment = gnump3d::oggtagreader->new( );
<     my %tags = $comment->getTags($file);
---
>     my %tags;
>     foreach my $ckey ( $reader->comment_tags() )
>     {
>       $tags{lc($ckey)} = ($reader->comment( $ckey ))[0];
>     }



--
Andrew McGuinness
Luton, UK




reply via email to

[Prev in Thread] Current Thread [Next in Thread]