Library won't update

General discussions
User avatar
anonbeat
Posts: 1960
Joined: Thu Sep 16, 2010 9:47 pm

Library won't update

Post by anonbeat » Mon Feb 07, 2011 5:48 am

If you rename a folder outside guayadeque the files will not change the mtime but ctime. Guayadeque will not know that files changed the location.
This is why guayadeque is using ctime and not mtime.

Looking for a tag to know if the file changed or not will slow down scan to where amarok scan speed is.

tamalet
Posts: 490
Joined: Fri Sep 24, 2010 4:34 am

Library won't update

Post by tamalet » Mon Feb 07, 2011 11:00 am

I did some tests and got that If you rename a directory it changes its ctime but not its mtime, and the files and subdirectories inside that directory do not change their ctime nor their mtime.
Would it make sense to use ctime for directories and mtime for files?

I also did some changes to see how Guayadeque works. I didn't find problems updating tags, covers or lyrics, even from outside Guayadeque. As long as I don't change the file name, they won't appear as recently added.

rickstone
Posts: 42
Joined: Sat Oct 09, 2010 9:57 am

Library won't update

Post by rickstone » Mon Feb 07, 2011 12:16 pm

This is a great discussion, though one that's a bit over my head. However, because saving lyrics and a few other things changes the file date, I don't do it. Though I wonder if an SVN update changed one of my settings...that's happened before.

And yes, the main dynamic playlist I use no longer saves the criteria, as was the case before the fix you did, Anonbeat.

Thanks!

tamalet
Posts: 490
Joined: Fri Sep 24, 2010 4:34 am

Library won't update

Post by tamalet » Mon Feb 07, 2011 3:16 pm

As I said I tried saving lyrics and changing tags from Guayadeque and outside Guayadeque and a rescan does not consider those files as new. It only happens if you move or rename the file.

rickstone
Posts: 42
Joined: Sat Oct 09, 2010 9:57 am

Library won't update

Post by rickstone » Tue Feb 08, 2011 10:32 am

Actually, saving lyrics does change the file date that shows in Nautilus and changes the date added in Guayadeque. Or, at least it did a few months ago. I stopped saving lyrics when I noticed it.

tamalet
Posts: 490
Joined: Fri Sep 24, 2010 4:34 am

Library won't update

Post by tamalet » Tue Feb 08, 2011 7:44 pm

Saving the lyrics changes the date of the modification of the file, but after an Update it won't appear as recently added.

rickstone
Posts: 42
Joined: Sat Oct 09, 2010 9:57 am

Library won't update

Post by rickstone » Wed Feb 09, 2011 1:08 pm

Personally I'm not terribly concerned with saving lyrics to files, however, if your statement is true Tamalet, why can't we leave the date added alone when changing tags and/or embedding artwork?

tamalet
Posts: 490
Joined: Fri Sep 24, 2010 4:34 am

Library won't update

Post by tamalet » Wed Feb 09, 2011 2:12 pm

For the 3rd time: I tried changing tags using Guayadeque and another tool and the updated the library. Guayadeque sees the changes but it does not consider the tracks as recently added. I didn't try with covers because I don't embed them, but I assume it's the same (after all it's just another tag).

Only when you rename a file Guayadeque considers it as recently added.

I'm always editing tags and saving lyrics and in the only tracks I see added in the last month is the one I renamed to test and a few albums I added. At least that is my experience.

tamalet
Posts: 490
Joined: Fri Sep 24, 2010 4:34 am

Library won't update

Post by tamalet » Sat Feb 12, 2011 2:48 pm

I have been tagging my library again and looking at the Recent Added Songs (which actually should be Recently). I have noticed that some songs start to appear there, but are not new.
I don't understand why those song are consider new and not the rest that I also edited.

Any idea anon?

Post Reply