Synology Audio Station – Recently Added

After the upgrade to Synology DSM 6 I noticed that the “Recently Added” section in the Audio Station was messed up. First I tried to reindex the whole library, but this didn’t do the trick. After a short glance in the Synology forum, I found out that the problem was due to the “created on” date of the music files. I deceided to fix this problem with the help of mighty powershell:
Get-ChildItem -Path "\\server\share\music\" -Recurse | ForEach-Object {if ($_.CreationTime -gt (Get-Date)) {$_.CreationTime = $_.LastWriteTime}}
Don’t forget to replace the path to your music folder. What does this simple one-liner do? It checks all elements under the given path if the “Creation Time” property is greater than the current date. If this is the case, it will replace the “Creation Time” with the “LastWriteTime”.

Run the indexing service afterwards (Control Panel -> Indexing Service -> Re-Index).


Leave a comment

Your email address will not be published. Required fields are marked *