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

Bug#481272: gnump3d: random playlist does not have m3u extension

Package: gnump3d
Version: 3.0-4
Severity: minor

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnump3d depends on:
ii  adduser                       3.107      add and remove users and groups
ii  debconf                       1.5.21     Debian configuration management sy
ii  logrotate                     3.7.1-3    Log rotation utility
ii  netbase                       4.32       Basic TCP/IP networking system
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 
ii  perl-modules                  5.8.8-12   Core Perl modules

gnump3d recommends no packages.

-- debconf information excluded

Since xmms has been removed, many users are replacing it with audacious.  Audacious does not grok playlists without an extension like xmms did.  This is a problem as
the random track playlist is just named "play" with no extionsion.  Audacious won't play it.

To change the behavior to be more audacious friendly, change one line in /usr/share/perl5/gnump3d/plugins/random.pm:

james@Samoa:~$ diff -u random.pm /usr/share/perl5/gnump3d/plugins/random.pm
--- random.pm   2008-05-14 15:07:56.000000000 -0800
+++ /usr/share/perl5/gnump3d/plugins/random.pm  2008-05-11 13:50:53.000000000 -0800
@@ -258,7 +258,7 @@
        #  Add a hidden form to contain the selections.
-       my $form = "<table><tr><td><form action=\"/random/play\" method=\"get\">\n";
+       my $form = "<table><tr><td><form action=\"/random/play.m3u\" method=\"get\">\n";

        #  Add in the line numbers of the random songs.

Adding the extension gives you play.m3u which audacious will play.

I know gnump3d is orphaned, hopefully anyone else seeing this problem will find this report.  It's an easy fix.

Reply to: