FURTHER UPDATE:
I've opened a ticket here:
https://sourceforge.net/p/subsonic/bugs/222/ but Sindre doesn't seem active on Sourceforge any more.
Details from the ticket:
Weird behaviour on 6.1.3 of late. When I add new music to an existing album (e.g. one that I'm creating and adding new tracks for mix testing) they show up immediately. However, if I add a new artist/album, they do not, even after using "scan media folders now".
The only way I can get new music to add now is by disabling then deleting the music folder entry in "settings" -> "media folders", scanning, then re-adding the folder and scanning again. Nothing else seems to work.
I have restored an old version of my DB from a time when I know everything worked, but the problem persists.
Extra info:
- Running 6.1.3
- Premium licence
- Windows Server 2012R2 - up to date with all updates
To elaborate after some additional testing, another use case is:
I have a new album for a new artist for which I have no other albums
- I add a new folder at the root of my music folder for the artist and a sub-folder for the album that contains the tracks. Scanning does not update the library with the new album
- I add a new folder for the new artist's album into an EXISTING folder for a different artist. Scanning correctly picks up the new album and correct artist name, despite it being in the wrong folder. Yay tagging.
- I move the folder after it has been detected into a new artist folder, rescan, the album disappears.
I think with multiple tests in different scenarios I have proved conclusively that Subsonic no longer detects new folders sitting at the root of the music library folder. No amount of "touching" to update create/update/accesssed dates forces SS to detect it.
FURTHER UPDATE:
If I manually add an entry into the MEDIA_FILE table in the database through the db.view page using (my specific case example):
insert into media_file values (46015, 'R:\Media\Music\Perturbator', 'R:\Media\Music', 'DIRECTORY', null, null, null, 'Perturbator', null, null, null, null, null, null, false, null, null, null, null, null, 'R:\Media\Music', 0, null, null, 0,0,0,0, true, 5)
...and then re-scan the library, the album that exists in that folder now shows up!!
I think the (potential) bug here is simply that new folders in root music folder are not detected in the scan.