Is there a way to hide empty folders from the folders view in the home movies section? I have a quite a few directories that do not have movies in them, so they show up as empty folders. The folders do contain photos so I can't just delete them.
Same issue here. I have folders by subjects, containing audiobooks, videos, pdf, and I'd like to browse only the let say "documentaries" so I need to be able to hide empty folders otherwise it's hard to browse.
Why don't you only add the directories that you want to each library? It sounds like you added a higher level parent directory to a library, and thus got all the subdirectories of that parent included automatically. Just go down a level from the parent and only add the specific subdirectories you are interested in the each library. Each library can have multiple subdirectories assigned to it, if needed. This is what I do.
This won't work if you're actually talking about dynamically dissappearing directory content - by that I mean directories that are populated with appropriate files at one moment (and you want those included in Plex), but then later you may delete the files, leaving an empty directory (that you now want excluded from Plex). But then later that same directory has appropriate files again (and you now want it re-included in Plex).
Same question here. I use the same structure for some media, and it’s not by media type. I want to see everything I have from an author (PDF, movies, audio files) and then browse all the videos in one library and all the audio in another. But then I have tons of empty folders, because, for instance, they do not contain video file.
I think the empty folders should be automatically hidden. It would make the “brose by folder” view really nicer.
IMO this should be the default behavior… why would we want to see a folder if it doesn’t have media applicable to that library? Hide empty folders by default, please!
I have double annoyance with the lack of this option.
It’s not so bad by itself, but when you have personal photos and videos that you want to show in Plex, you have to do it via two separate libraries. As a result, ‘Home Videos’ library has LOTS of empty folders. And no, navigating it without folder view is impossible - I am not renaming hundreds of CIMGxxxx.MP4 clips, no way.
So I am stuck with more than decade of photo and video archives that is impossible to properly navigate. Caveat emptor.
+1 to hide folders with content that does not match the library; many people will store photos and videos in the same media directories. Plex should identify if a folder contains relevant content and only display the folder if such content exists.
Please, should keep scanning those folders for content as usual.
+1 … the lack of this feature essentially cripples this product. “many people will store photos and videos in the same media directories” … exactly! Like most, I organize my photos/videos into folders by date. Most only have photos. Since the videos are only available in the videos section, it displays hundreds (thousands in my case) of empty folders. Completely unusable. There is simply NO REASON to ever show empty folders. Come on PLEX … put some thought into this one!
“exactly! Like most, I organize my photos/videos into folders by date. Most only have photos. Since the videos are only available in the videos section, it displays hundreds (thousands in my case) of empty folders. Completely unusable. There is simply NO REASON to ever show empty folders. Come on PLEX … put some thought into this one!”
I had similar issues and wrote a simple script to clean the small files in the folders and then remove empty directories, I am no linux pro so please excuse amateurish coding, but it works for me anyway… Create a file name ‘‘clean’’ in your home folder, set permissions to executable, paste this into it:
#!/bin/bash
this cleans .nfo .jpg and other crap left in folders, then delete empty directories
Edit line below
PATH="/where/your/movie/files/are/"
cd “${PATH}”
Need to add an exta file type to remove? duplicate and edit below lines.
/usr/bin/find . -depth -type d -empty -exec /bin/rmdir {} ;
This should work, I also schedule this to run on my Ubuntu 16.04 server every night using:
crontab -e
Then add this line at the bottom of the list: 00 02 * * 1-7 /home/YOURusername/clean > /dev/null 2>&1
this runs at 2 am every night, alternatively you can generate your own parameters at https://crontab.guru/
and replace the ‘‘00 02 * * 1-7’’ above with whatever you get from this website.