| 1 |
Description: Replace Ogg::Vorbis::Header with Ogg::Vorbis::Header::PurePerl. |
| 2 |
The former was removed from Debian. |
| 3 |
Origin: vendor |
| 4 |
Bug-Debian: https://bugs.debian.org/655410 |
| 5 |
Author: Tim Retout <[email protected]> |
| 6 |
Reviewed-by: gregor herrmann <[email protected]> |
| 7 |
Last-Update: 2016-07-20 |
| 8 |
|
| 9 |
--- a/randomplay |
| 10 |
+++ b/randomplay |
| 11 |
@@ -10,7 +10,7 @@ |
| 12 |
use Term::ReadKey; |
| 13 |
use POSIX ":sys_wait_h"; |
| 14 |
use MP3::Info; |
| 15 |
|
| 16 |
+use Ogg::Vorbis::Header::PurePerl; |
| 17 |
use Time::localtime; |
| 18 |
|
| 19 |
$| = 1; |
| 20 |
@@ -417,7 +417,7 @@ |
| 21 |
$song_artist = $v if ($k =~ /artist/i); |
| 22 |
} |
| 23 |
} elsif ($next_song =~ /ogg$/i) { |
| 24 |
|
| 25 |
+ my $tag = Ogg::Vorbis::Header::PurePerl->new($next_song); |
| 26 |
foreach ($tag->comment_tags) { |
| 27 |
$song_info .= $_ . ": " . join(" ", (defined $tag->comment($_) ? $tag->comment($_) : "")) . "\n"; |
| 28 |
$song_title = join(" ", (defined $tag->comment($_) ? $tag->comment($_) : "")) if (/title/i); |