Quote:It’s pretty flexible once you work out how it works.
Yes, that was always the aim. Give power users as much functionality to use creatively as we can (now @
black_eagle and me
) within the inevitable limited time we can volunteer. Backing it up with clear instructions and user guides is just not the best use of my time. I do get sucked into long explanations on the forum sometimes, which is not efficient either, so always happy that you expert users help each other out and can support the rest of the community. Anyone want to turn my longer posts into a guide please do.
(2021-05-08, 02:16)HomerJau Wrote: [ -> ]One nice feature is it [JRivers] auto-monitors it’s Source folders and scan new media in automatically.
I know Kodi has an option to scan on startup, I’ve never tried this as I assume it does a full scan which would take a while. Please tell me this is only a scan for new. (if not mayb a new Preference?). That would be more useful than the full scan. Maybe the long scans for me is that not all files have MusicBrainz IDs so it’s goes looking. Unsure...
Scanning in Kodi is 2 phase, with optional scraping of the resulting artists and albums as a 3rd.
Phase #1 of library update is to look through the folder tree of every source previously added to the library, working hierarchically and checking a hash value of size and date timestamp against that stored previously for any changes. If there is a difference in hash for the folder (which will catch both new files and edits) then the metadata embedded in the files are read. That is Phase #2. Finally phase #3, if you have "fetch additional info on library update" enabled, and artist and album scrapers set, then the scraper attempts to fetch information and art for any previously unscrapped album or artist.
Now phase #1 is relatively quick, it only looks at hashes, but does require disc and LAN access to wherever your media files are located and speed for that will vary depending on your set-up and how much music you have.
But yes, scanning does take a quick look at all the folders, but how else is it to find the changed or new stuff? If JRivers, or anything else, has a different approach to auto-monitoring I would like to know what that is.
Phase #2 is slower, it is reading metadata and making db entries, but only does so for
music files in folders that have changed. So say you add or edit a music file, Kodi will rescan all the files in that folder. This makes sense as the db entries for album and artists are a combination of data from multiple files taken together. It does mean that if you had a totally flat file arangement (all files in one fodler) Kodi would still use the tagging to make library entries for artists, albums etc. but rescanning would be slow. Most users have some kind of folder structure to their music files, how many folders have changed hash will impact the speed of phase #2.
Finally phase #3. Unless you have all local nfo and art, (or scraper set to be local only) then scraping requires internet access to various servers which takes time. All the current scrapers use Musicbrainz as a primary source, and access to their server is throttled to one attempt per second (or they block you). The first thing that happens if there is no mbid is that it does a look-up by name, before making a second call to get the data. Not having Musicbrainz ID values in your tags means that remote scraping makes twice as many requests, which takes time and places more load on the free Musicbrainz service. Scraping will try everytime to fetch data (first locally and then remotely) for any existing artists and albums that have not been successfully scraped. So if you have an odd artist without mbid that the scraper can't lookup it will keep trying every time.
If I want to get an item into the library quickly then I use "scan to library" from the context menu in file view, having navigated to the artist or album folder where I know I have added music. This reduces the time taken for even phase #1. I also don't scrape by default, but prefer to do that on my desktop (dev system), export to nfo files and local art, tweak anything I want to, add those nfo and images to my media folders and Artist Information Folder, and only then update my family system. I prefer that kind of hands on curation, but then my music collection is pretty mature now, I rarely add more than 10 albums at a time.
@
HomerJau hope that clarifies things. It may well be that "update library on startup" is what you want, yes it only deep scans new/changed things. It runs in the background so does not prevent library use (just cleaning or scraping). But unless you are adding things to your music collection all the time I can't really see the need. Just click "update library" on the side blade when you know you have added stuff.
Oh and if you want to scrape remotely too maybe be kind to our friends at Musicbrainz and make nfo files for those unidentifieable albums and artists, set scraper to local for some folders (scraper settings it can be varied at that level), or tag your music with mbids (adding to Musicbrainz for any unknowns).
Might split this scanning/scraping mini-tutorial off into own thread.