Bugzilla – Bug 4922
When PlayList is empty, Download brings up a blank web page and gets stuck there.
Last modified: 2008-12-18 11:12:53 UTC
Sys Info: Gateway, P4, 2.00 GHz, 1.25 GB of RAM, Vista SP0 ENU Steps: 1. On a clean ghost of Vista, install SlimServer 6.5.2 of build 2007-04-17. 2. Start SlimServer. 3. Start the web interface. 4. Go to bagpuss style. 5. With PlayList empty, click "Download". 6. Notice a web page pops up, but it never finishes loading. Work Around: Add some songs to the PlayList first. Media Player pops up nicely when Download is clicked.
Best solution is for the download/clear links to only appear if there is a playlist to act on. To do this for all skins (those properly using the hreftemplate), the EN/hreftemplate blocks can change like so: [%#href for downloading the current playlist %] [% BLOCK downloadPlaylistLink; downloadString = "DOWNLOAD" | string -%] [% IF playlist_items %][% "<a href=\"status.m3u?player=$playerURI\" target=\"";$target or 'playlist';"\">";img or downloadString;"</a>" -%][%- END %] [%- END %] [%# href for clear current playlist command %] [% BLOCK clearPlaylistLink; clearString = "CLEAR" | string -%] [% IF playlist_items %][% "<a href=\"$statusroot?p0=playlist&p1=clear&player=$playerURI\" target=\"";$target or 'status';"\" >";img or clearString;"</a>" -%][%- END %] [%- END %]
I'd actually rather not fix this for 6.5.2 for fear of affecting this rather central part of Slimserver in some unexpected way.
in trunk at change 11801 reopen if any issues come up
Verified the fix with 6.5.2, build 2007-04-24, on Vista SP0 ENU. Bug as written is no longer seen. Marking as Verified. Will close. Regressed other functions in PlayList. Nothing seems to be broken.
Marking as CLOSED.