-
Notifications
You must be signed in to change notification settings - Fork 239
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
[scan] Fixing time_added
field for local files when building library
#1364
Comments
Looks hacky to me, and I'm not sure I understand why the issue should even be addressed in the scanner? Saving time added to library as time_added and mtime as time_modified seems reasonable to me. Sounds like it is more the view that is causing the issue? |
sorry its taken a while to get back (year end release scrambles). You're probably right this could be solved by a different view; when an album object is retreived from the db it only has one The |
I have a similar use case. Also using NFS mounted share and sometimes my library gets reset. When this happens 'recently added' makes no sense anymore. It would be very nice if for initial scans this can be either configured on date created or date modified of the actual files. As a work around I now keep making smart playlists to keep track of recently modified. Unfortunately this doesn't support date created either so after fixing some tags in my collection it suddenly seems as if these were just added so it is still not ideal. |
I have
owntone
running on myRPi 4
with music on an NFS exported filesystem (/export/music
)I recently rebuilt a
RPi 1
and it's own instance ofowntone
NFS mounting my music. When I rebuilt the music library I see that all albums are shown as added today - this is a little annoying as whilst the albums were known/discovered by thisowntone
service, the music was (arguable) not added today. This does mean any smart playlists for recent additions are all wrong since EVERYTHING in the library was added today.This happens because the file scan uses the current time when setting the
time_added
field. We can make the server observe the file'smtime
field which would be more sensible and I've got a working patch.This patch ONLY takes care of the file scanned (not noticed by
inotify
) which has its own code path to callingprocess_file()
and thetime_added
would remain as current time.Is this something you'd accept for PR?
The text was updated successfully, but these errors were encountered: