Bug 3078 - Missing error for empty directory on play
: Missing error for empty directory on play
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 6.5b1
: PC Debian Linux
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-28 15:29 UTC by Chris Masterton
Modified: 2008-09-15 14:39 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Masterton 2006-02-28 15:29:43 UTC
When you press play on a directory (browse music folder) that contains files that the squeezebox can't immediately play (for example, if a directory is empty or contains non-music files), there is no visual feedback on the display. No error message or information to inform the user that no music exists here. 

Sometimes this can be really frustrating if you -think- there is music in that directory and in reality there isn't. 

More of a usability improvement I guess but its driven me crazy a couple of times recently.

Chris.
(Street_Samurai)

p.s. you might want to adjust some of the settings for this bugs, some of the fields were non-intuitive to me... is this a Graphics Component bug or Misc...?
Comment 1 Dan Sully 2006-04-22 14:13:23 UTC
Dean - thoughts on this?
Comment 2 Dan Sully 2006-07-23 18:22:48 UTC
Dean?
Comment 3 KDF 2006-07-25 22:09:45 UTC
tried this with an empty folder, svn 8675, and I'm seeing "ERROR: Can't open remote url" shown on the top line when pressing play.
Comment 4 Blackketter Dean 2006-07-29 12:50:57 UTC
Ok, first we should fix the problem that kdf describes.  At a minimum it should say: 

Now Playing
Folder Name

--------------------
If, after scanning the folder it ends up playing/adding no songs, there should be a showbriefly message that says:

Problem: No songs in this folder.

Comment 5 KDF 2006-07-31 16:36:29 UTC
the error is spit from _playlistXitem_load_done, which does allow an $error in the args.  
woudl probably work to just supply that $error arg when the load fails.
Comment 6 KDF 2006-07-31 17:00:27 UTC
in fact, simply changing line 27 of Slim::Utils::Scanner seems to give the desired UI:

return $cb->( $foundItems || [], scalar @{$foundItems} ? undef : 'PLAYLIST_EMPTY' );

if course, the string could be anything, but this was a somewhat applicable one that already exists in strings.txt
Comment 7 Dan Sully 2006-08-21 17:59:42 UTC
Commited kdf's patch in change 9089