2015-08-01, 12:39
I think that may have come across a bug in the music library scanning section. (I am using Ubuntu 14.04 and/or Mint 17 with Kodi 15.0), and my music library is hosted on an NFS v4 share on a different machine
1, My wife added an album to the directory that kodi scans for music, but only gave herself read permission to it (some would say that she is selfish, but we get on ok)
2. On our HTPC, kodi runs with its own ID, and did not have read permission to the file -- unsurprisingly it was not added to the library.
3. She then changed the permission on the file to 644 (read access to anyone) and got kodi to rescan the library (she used chmod, which changes permission but not the time stamp). The album still did not appear in the library (although I could play it by going to the files menu). My expected behaviour was that the album would appear in the library after changing the permissions.
4. She then used "touch" to change the access time and rescanned the library. At this point, the album appeared in the library fine.
I have created three log files to show this effect (using "TEST SONG.mp3")
Scan the file with no permission: http://pastebin.com/DjHaEBx7
Second scan after chmod: http://pastebin.com/BLbWtp91
third scan after touch: http://pastebin.com/xtU6wTg4
1, My wife added an album to the directory that kodi scans for music, but only gave herself read permission to it (some would say that she is selfish, but we get on ok)
2. On our HTPC, kodi runs with its own ID, and did not have read permission to the file -- unsurprisingly it was not added to the library.
3. She then changed the permission on the file to 644 (read access to anyone) and got kodi to rescan the library (she used chmod, which changes permission but not the time stamp). The album still did not appear in the library (although I could play it by going to the files menu). My expected behaviour was that the album would appear in the library after changing the permissions.
4. She then used "touch" to change the access time and rescanned the library. At this point, the album appeared in the library fine.
I have created three log files to show this effect (using "TEST SONG.mp3")
Scan the file with no permission: http://pastebin.com/DjHaEBx7
Second scan after chmod: http://pastebin.com/BLbWtp91
third scan after touch: http://pastebin.com/xtU6wTg4