I'm trying to play m3u playlists directly with mplayer, as if they
were an audio file like a mp3 or ogg file (I mean without browsing
them).

To achieve this I have in local_conf.py:

PLAYLIST_SUFFIX = [ ]
AUDIO_SUFFIX = [ 'm3u', 'mp3', 'ogg', 'wav', 'm4a', 'wma', 'aac',
'flac', 'mka' ]

But I've found that there is a line in src/audio/plugins/mplayer.py
that prevents mplayer from playing m3u playlist if they are a local
file:

L.128:
     if item.network_play and ( str(filename).endswith(m3u') or
str(filename).endswith('pls')):


I've changed it to
    if ( str(filename).endswith(m3u') or str(filename).endswith('pls')):


And now I can play m3u files without problems (freevo appends
'-playlist' to mplayer command line when it detects a m3u file).

I've been using this setting for several days now, and apparently
there are no collateral effects. In fact, if you leave PLAYLIST-SUFFIX
= [ 'm3u' ], freevo goes on with the standard behaviour and again you
can browse m3u playlists.

So my question is, why does this line filter only net playlists? Am I
breaking something changing the code?

Eduardo

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to