I seem to be having some long hangs and delays when scraping my Movie and TV directories. The scan will run quite quickly through Movies then experience a fairly long delay (maybe 2 minutes) before starting to scan the TV directories and then an even longer hang at the end of the TV directory scanning before it finishes up.
This happens even when there is nothing new to be scraped.
The shared folders are mounted via NFS mounts in my fstab and the shared folders are on a Synology NAS that also has Plex installed and scans the same directories/libraries. I use OSMC for viewing at home and Plex for viewing when I’m not at home.
I have a couple of suspicions as to why this is an issue, but I’m not sure reading the log files. One possibility is I see a ton of files that get created in an @eaDir path which seem to be either plex or synology. Maybe OSMC is choking on these files? I’m not sure if they can be deleted or if there is a way to get osmc to just avoid that directory entirely?
Here’s a log from a scrape that I just ran that took about 7 minutes to run, but there was no new content. The longest hang was at the end of the TV scrape before it finished up the process.
the @eaDir folder is created by the Synology. I’m not sure why the Synology does that or what it’s for, but there is no way I’ve found to keep the Synology from creating them. You can exclude them from the scanning, which may help. I exclude them and am running OSMC on a Vero4K+ with all my media on a Synology NAS using NFS with a mount point, and I’m not seeing times as bad as yours.
In advancedsettings.xml you need to add this and then restart Kodi:
thanks for the settings to add to the advancedsettings.xml. I did add it and restarted kodi but it didn’t work out at my system (synology and nfs) as it did with yours, as the @eaDir still showed up. I found an example on kodi How to hide/exclude the @eadir folders which i tried to move in between your suggestion and that worked. it even stopped showing the recycle bin.
Since there is a few derivations here that might prove confusing for some here is what the entire file would look like. Note that the “append” modifier (despite what Kodi’s wiki seems to state) is not needed as excluding it does not remove defaults.
Thanks for the tip. Each share on my synology gets an recycle bin and i only have 1 folder were i have a subfolder were the movies are stored. But i’ll add this as well and see how it works
Those two exclusions I posted were for drives that had been plugged into a Windows PC at some point and video files were being stored directly in the root folder. I spaced for a moment that we were talking about a NAS.
Thanks for this and everyone else who jumped into this thread. This has significantly improved my scanning time. I still get a little bit of a hang at the end scanning the TV shows, but it’s looking to be less than a minute. Previously, I was seeing hangs at 6-8 minutes
If you mean to ask the Kodi dev’s to add a hidden blacklist, I’m not so sure. Things can unintentionally get caught in those. If you mean to ask the scraper dev’s if they should be trying to scrape hidden folders, sure.
I think it should not be hardcoded so this cannot be modified by users anymore.
Putting it in /usr/share/kodi/system/advancedsettings.xml at least for OSMC devices would be fine … and is another important key differentiator, then .