



Hi all,
I lately found that the web interface wasn't able to play an MPD playlist, and figured out why : in file /var/www/inc/player_lib.php we can see playlists are recognized from their extension (pls or m3u), whereas MPD playlist may not have any extension. When a MPD playlist is sent to the "addQueue" method from player_lib.php, its path is actually the playlist name, as if located in the root folder. So I propose the following fix :
1. Edit player_lib.php
(sudo vi /var/www/inc/player_lib.php)
2. Find 'addQueue' function (/addQueue)
3. in "if ($fileext == 'm3u' OR $fileext == 'pls' …" add a check of $path containing "/", that is :
if ($fileext == 'm3u' OR $fileext == 'pls' OR strpos($path, '/') === false) {
And that's it! restart the web player (or raspberry) and it'll work


Most Users Ever Online: 200
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Gyp: 82
yoghurtlidlicker: 37
PaulM: 36
icai: 35
Derek: 29
Karsten: 27
tc-fi: 22
Ronaldo: 21
ENSen: 21
chriz: 20
Member Stats:
Guest Posters: 3619
Members: 569
Moderators: 0
Admins: 1
Forum Stats:
Groups: 4
Forums: 10
Topics: 469
Posts: 13163
Newest Members: polo2016, dongdong8, wlpwlp, Sager, ninestab123, lmx66, lmx, jlgg, chenyan, guoyanying
Administrators: admin (401)