-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update only new albums #79
Comments
When you choose 'Update all' O!MPD scans whole But if you only want to add single album, you can update DB very fast:
or
Both of the above ways are much faster and I use them more often then 'Update all'. |
I'll often add say a dozen new albums at a time, so manually finding and updating each would be rather annoying. I'm not sure you are correct about how linux utilised time stamps though. For example I just added 8 new albums, my top level directory now has 2747 folders. When I use a simple "ls -ltr" command the last several folders are correctly listed as the ones most recently added to:
Furthering the example, the Iron & Wine folder holds 6 albums, so the top level folder has existed for a long time, yet is listed, probably because of the modified date perhaps. ie.
But I assume this could be done several ways, with a find command date limited etc. |
That's why I wrote that finding new dirs is quite fast. Problem is when you modify existing file, e.g. you change tags in a file. Then modification date is only changed for that file, not for the containing directory. That's why when you choose 'Update All' O!MPD checks all files (i.e. all files in directories which weren't changed since last update; the ones that were are assumed to have new files/dirs and are added to update list without further checking). Anyway updating all files (both new and changed) requires checking modification date for almost all files in media dir - maybe there is a faster way to find changed files, but I couldn't find it... |
Wondering if its possible to add a "Index new albums" functions, where we only index albums added since the last "update all" or "index new albums" call. In linux it should be pretty easy to find new directories since the last indexing call.
The text was updated successfully, but these errors were encountered: