Database won't clean
v3.4.4 I found my database was huge. Digging in I found many sections related to files that no longer exist in the Library for years. Notice that grace-period is set to 5 in dconf-editor (see all settings all in the end of block quote below). I pruned these entries, thinking it was an old bug. Dealing with another issue I moved files out of the library, replacing them with links, then I deleted links and moved the files back. I think I found some weird things in the related entries. Below are the entries for one of these files.
- The first block is the current location for the file. Here we see the last-seen tag set OK, and I don't give a damn the file won't show in RB Music view although the hidden tag is not set, because I don't need RB to play these files. No purge issue here as the file exists here.
- The second block is the one when the file was out of Library as a link target, now deleted. Notice last-seen is missing, so I guess this entry will remain here forever. hidden is missing too, but the file was never shown in RB GUI "Missing" view on restart.
- The third block is for the file when I moved it back to the Library, just forgetting the original sub-dir location (compare with 1st block). Here hidden is set and/but again I don't care, and it's good because the file doesn't exist here any more. But again last-seen is missing also here, so the block will never be deleted IIUC.
grep -C5 MISS%20YOU%20BASSE.gp rhythmdb.xml
<entry type="ignore">
<title></title>
<genre></genre>
<artist></artist>
<album></album>
<location>file:///home/me/Musique/000%20Bass/Ceux%20du%20mardi/MISS%20YOU%20BASSE.gp5</location>
<mtime>1531056692</mtime>
<last-seen>1714503323</last-seen>
<date>0</date>
<media-type>application/octet-stream</media-type>
</entry>
--
<entry type="ignore">
<title></title>
<genre></genre>
<artist></artist>
<album></album>
<location>file:///home/me/Documents/GuitarPro%20(CD%20&%20Tabs)/MISS%20YOU%20BASSE.gp5</location>
<mtime>1531056692</mtime>
<date>0</date>
<media-type>application/octet-stream</media-type>
</entry>
<entry type="ignore">
--
<entry type="ignore">
<title></title>
<genre></genre>
<artist></artist>
<album></album>
<location>file:///home/me/Musique/000%20Bass/MISS%20YOU%20BASSE.gp5</location>
<mtime>1531056692</mtime>
<date>0</date>
<media-type>application/octet-stream</media-type>
<hidden>1</hidden>
</entry>
me@lap:~/.local/share/rhythmbox$ dconf dump /org/gnome/rhythmbox/rhythmdb/
[/]
grace-period=5
locations=['file:///home/me/Musique']
monitor-library=true
me@lap:~$