Hide empty folders?

General discussion about RuneAudio. Do not post any support or feature requests here.

Hide empty folders?

Postby jonas18z » 15 Apr 2015, 21:09

Hi

I have a problem sometimes I have FLAC-music in a folder and subfolder with say covertart then the coverart is inlcued in the library but empty.
User avatar
jonas18z
 
Posts: 34
Joined: 21 Oct 2014, 17:55

Re: Hide empty folders?

Postby skrodahl » 15 Apr 2015, 21:22

Hi jonas18z,

This has been discussed earlier:
restrict-library-to-one-folder-t736.html

Simply create an empty file called .mpdignore in the folder(s) that you want to exclude.
-skrodahl

|| Audiobah TPA3116 || || ProJect Debut Carbon Espirit DC || / RaspBerry Pi / HifiBerry DAC ||
User avatar
skrodahl
Moderator
 
Posts: 160
Joined: 27 Jan 2014, 10:08
Location: Sweden

Re: Hide empty folders?

Postby jonas18z » 15 Apr 2015, 22:13

Could be scripted via python or something to add the ignorefile. But why not inlcude it in runeaduio?
User avatar
jonas18z
 
Posts: 34
Joined: 21 Oct 2014, 17:55

Re: Hide empty folders?

Postby skrodahl » 16 Apr 2015, 00:03

-skrodahl

|| Audiobah TPA3116 || || ProJect Debut Carbon Espirit DC || / RaspBerry Pi / HifiBerry DAC ||
User avatar
skrodahl
Moderator
 
Posts: 160
Joined: 27 Jan 2014, 10:08
Location: Sweden

Re: Hide empty folders?

Postby jonas18z » 16 Apr 2015, 21:52

Sure but add a settings with:
if folder is empty from song the hide else show.

Anyone know where I find the Libray build ALGORITHM?


Tried some jquery to hide empty folder with css but the ul li structure

$("ul li:empty").remove();
User avatar
jonas18z
 
Posts: 34
Joined: 21 Oct 2014, 17:55

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 27 guests