Page 1 of 1

Scanner not finding new albums

PostPosted: Mon Mar 04, 2019 8:59 pm
by keanon
Hello!

I have a folder, F:\Music\.
I put new music into F:\Music\Unsorted\.

The nightly scan is not picking up new music in the latter folder that was added to the drive after the initial Subsonic scan.

Ideas? The subsonic.log file is not giving anything relevant.

Re: Scanner not finding new albums

PostPosted: Tue Mar 05, 2019 9:30 am
by 3Dscrewer
It would be nice to hear what OS you are using. That’s very helpful because every OS is different to handle.
Since you’re using Backslash I assume that it is Windows.

I don’t use Backslashes at the end of the path, probably that might be the difference?

My path is always Music\Artist\Album\CD if more or Tracks without Problems.

If you are using Linux check the rights for the new folder

Re: Scanner not finding new albums

PostPosted: Tue Mar 05, 2019 7:37 pm
by keanon
It's Windows. The scanner counts all the other folders/files but not new ones. I removed the slash and rescanned but no bueno.

Re: Scanner not finding new albums

PostPosted: Tue Mar 05, 2019 10:59 pm
by G8DHE
I believe if the scanner doesn't see the date change on the folder then it assumes that nothing has changed below it, touch all the folders with a new date and all the contents will be rescanned.

Re: Scanner not finding new albums

PostPosted: Thu Mar 14, 2019 5:01 am
by hogfan
If you need to do a touch command on Windows, put the below code into notepad and save the file with a .ps1 extension (Windows Powershell). This is a basic Powershell script that will recursively touch all folders/files. Just be sure to replace the path with your drive letter and directory. Note: If you run this against your main music folder it will update the last modified date on ALL of your music folders and files. That is not ideal in some cases if you actually care about the current modified date for some other reason. Therefore, just include only the full path to the top level folder you want to "Touch" and everything under it.

Code: Select all
dir F:\Music -R | foreach { $_.LastWriteTime = [System.DateTime]::Now }


Then just run the script with Windows Powershell. All of you new music should now show up in Subsonic.

I think the scanning issue is a Subsonic bug that needs to be fixed........the scanner needs to look not only at the folder mod date, but the mod date of the files within the folder.

Re: Scanner not finding new albums

PostPosted: Sat Mar 16, 2019 6:42 pm
by 3Dscrewer
Michael from play:sub (iOS (Apple) APP) just found that there are two ways how subsonic handles changes. That causes that a edited Album probably is not shown as new, but the changes are still available in folder view ....
If you are changing only the Tags it is recognized, but is not new because two entries in Database.
Check this out.

Re: Scanner not finding new albums

PostPosted: Mon Apr 08, 2019 2:19 am
by azzure
I figured out how to run hogfan's script but I'm getting an "access to the path is denied message" for each file. I'm fiddling with permissions but can't seem to fix it.

Re: Scanner not finding new albums

PostPosted: Tue Apr 09, 2019 8:22 am
by 3Dscrewer
right Mouse click at that file you have generated and execute as admin, that should help (Windows Basics you should know)

Re: Scanner not finding new albums

PostPosted: Wed Dec 04, 2019 4:07 pm
by benco55
I did it like this, but a got a faut, see below.

dir Y: -R | foreach { $_.LastWriteTime = [System.DateTime]::Now }



foutmelding in Windows power shell
PS C:\> ".\SubsonicY.ps1".
>>
At line:1 char:19
+ ".\SubsonicY.ps1".
+ ~
Missing property name after reference operator.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingPropertyName

Re: Scanner not finding new albums

PostPosted: Thu Dec 05, 2019 3:00 pm
by 3Dscrewer
You can try Total Commander afaik it is shareware, you can start it by pushing 1 or 2 or 3 each time. Download is free ...
There is an option to change attributes ie date to all files and subfolder. Upper left corner, Files ... thats the way I do it ... :-)