I have an issue that many others have complained about:
Many of my music albums are split, meaning an album with x songs shows as the same album twice, with those songs split between them some way.
Before it’s mentioned, my metadata and folder structure are exactly as they should be, it’s 100% a Plex issue.
Refreshing metadata, preferring local metadata, etc. have not consistently fixed it.
This is an issue affecting hundreds if not thousands of albums in a giant library.
I want to develop a script to does the following:
- Goes through my library one artist at a time
- Gets an artist’s albums
- Notes duplicate albums based on album name
- Checks the file path for duplicate albums
- Notes duplicate albums that share an album folder
- Merges duplicate albums that share an album folder
Theoretically, this should be pretty easy to accomplish.
In practice, I don’t see any way to programmatically interface with most of Plex’s functions including album merging.
Manually merging all duplicate albums is not a viable solution. It would take forever.
Removing and re-adding the library, whether it be within Plex or in my filesystem, is also not viable. It’d take less time but it’s insane to run the sonic analysis and metadata matching and remake my smart playlists just for this.
Is anyone aware of a way to do what I’m looking for?