Public GPL version. Fix the albums date added using one of its songs date added.
- You understand the risk of using this script and you accept the risk it.
- By using this software you will not hold me (the author) responsible to any negative impact on your library.
- The software is provided "as-is", you can enhance and change the code to fit your need.
- And above all, you should do a backup of your library before any operation.
- The files creation date and last modified date of the files, folders and sub folders are correct and like you wanted them.
- The server is using SSL.
- You have access to emby Server with a admin user
- it will list all the albums, for each album it will take the first song.
- if the "date added" is different, it will take use the one from the song in the album and save the metadata.
- "node": "^16.6.1",
- "request": "^2.88.2",
- "winston": "^3.3.3",
- "winston-daily-rotate-file": "^4.5.5"
- Do a backup of your library!
- Configure the api key in /src/data/mb-api-token.json
- Configure "embyUserId", "embyDeviceId", "embyMusicAlbumParentId", "embyServerHost" and "embyServerPort" in /src/data/mb-device-config.json
Please follow the guide here: https://github.com/MediaBrowser/Emby/wiki/Api-Key-Authentication and paste the API key in the json file.
Go into the user profile with the admin rights, check the URL, you'll see the embyUserId. Copy and paste it in the config file.
- Go into the dashboard
- In the Devices section, click on Devices (as in screenshot)
- And select the last device you used to connect with your user account (it does not really matter)
- Check in the url, you'll see the id. Copy and paste the value in "embyDeviceId" in the config file.
Here it's all about the albums with the wrong added date.
- From Home, go into Music library
- Once in the music library, check the url, you should see parentId. Copy and paste this value in "embyMusicAlbumParentId" in the config file.
Please verify that you have the correct dependencies and the right NodeJS version. node .\src\fix-mb-music-date_added.js