Showing posts with label plex. Show all posts
Showing posts with label plex. Show all posts

Sunday, August 31, 2025

From the treasure chest: Python scripts for specific use cases

 

         

Here are some interesting scripts that aim to help with organizing a music library and specific use cases. Not all may be plex specific, the scripts just caught my eye. Caveat: I haven't tried them out myself unless noted. If you try them, please leave a comment to help others. I plan to update this list from time to time.

Chromatix: Plexamp is an excellent mobile app which can run on desktops - but is not good at that. Chromatix is my favorite when I listen to a specific album. It has a nice UI with a lot of features - not the DJ's and the other stuff dependent on sonic analysis though. In use.

Plex-Music-Organizer: Exporting Plex music metadata and update tags from CSV within the database

Audiograde: Picks a random album, plays it to help rating its songs.

There are new projects to create playlists with the help of AI being released on github every day it seems. These are some interesting ones:


Plex-mcp-server: transforms libraries into AI-queryable databases.

Plexmix: AI generated playlists based on the library in plex. Generates mood, environment and instrument embeddings to filter by. 

plex-open-playlister: generates intelligent playlists using locally installed LLMs (Ollama). Mix of semantic, signal-based and traditional approaches (lastfm queries).

AudioMuse AI: Feature-rich sonic analysis and AI-powered clustering to create smart, tempo, mood and environment based playlists within Jellyfin and Navidrome. A plugin for Musicbrainz Picard fetches tempo and key inter alia.  No plugin for plex yet.




Thursday, June 26, 2025

Discover new Music with LastFM

 

     

The functions of the current streaming providers for discovering new music unfortunately leave to be desired. In my experience, Spotify's algorithm used to be good, but has been changed for the worse. Apple Music does offer the option of listening to music by similar artists, but you can't save it as a playlist. Unfortunately, the integration of Tidal is not continued in Plex.

This is where this script comes in to make such a LastFM function usable for Apple Music. After entering an artist, comparable artists and their tracks or albums are searched for and made available in a file. This does not include artists that can already be found in the plex library. The text file can be read in with a shortcut under ios and a new playlist is generated in apple music.

Sunday, March 23, 2025

Combine playlists

      


If you want to combine 2 or more existing playlists, you will not find a button specifically for that.
Instead you can start playing the first track of  playlist 1 and then select save queue as new items in playlist 2.

Alternatively, you could use a python scriptUsing python would allow you to combine more than just two playlists in one go. This could also be used to realize different sorting options, for example randomly mixing all tracks or sorting them by genre or last play date. An example is this script.

Unfortunately, the year of release of the track is not available as a sorting criterion because the Plex database lacks such a field at track level. If you want to sort in this way, either the original playlists must already be sorted by year or the only option is to export the playlists to an external music management program. There, the tracks can be sorted according to various criteria such as the year of release and the new playlist can be imported back into plex. I have already described how to do this in another article. 



Friday, January 31, 2025

Daylist - Playlists

     


Plex and plexamp already have a number of options for automatically creating playlists: Radios or sound journeys created based on certain criteria. 

The Meloday script, which can be found here, takes a time of day or mood-based approach. Meloday creates playlists for the respective time of day, be it morning, afternoon or late at night. It does this by using tracks that have already been played at those times, and adding tracks with sonic similarities to this framework. 

It even uses artificial intelligence, but not to generate the playlist itself, just to reformulate the names and descriptions of the new playlists.

There are many enthusiastic voices on reddit\/plexamp, even Elan Feingold, one of the founders of Plex, has commented positively - so it's worth giving it a try. 

Tuesday, November 12, 2024

Importing playlists and importing ratings into plex

 

I was recently asked again whether it is possible to import a playlist in .m3u format that exists outside of plex into plex. Also on a regular basis plex users ask whether it is possible to sync track ratings to plex. I have discussed those issues in my blog a while ago but it may be helpful to revisit them now.


Unfortunately, both is not possible out-of-the-box, but there are workarounds. I would like to describe one possible way here. 


Importing playlists

Let us start with importing playlists. Since plex is very picky, you have to proceed very carefully though. The success depends on a number of factors that may be different for each user. That is probably the reason why plex does not offer importing playlists in the first place. 


First of all, it depends on whether plex is running on a Windows or Linux device. In my case, plex runs on a Linux device. So take care that all paths, be it to the .m3u file or  those in the .m3u itself to the .mp3-files comply with Linux conventions. Change the root and any backslashes if you are working in a windows environment for example with the editor. 


Secondly,  I am assuming that the tracks are already in the Plex database and are located at the place mentioned in the m3u. If this is not the case, plex cannot recognize the tracks of course. 


Thirdly, make sure that your .m3u is located somewhere within the folder structure of the Plex library you want the playlist to be added to. If this is not the case, plex cannot see the m3u. 


Now you can use either a curl command or a python script (to be found on github) to import the playlist. I recently tested jaylex32's 's Syncra and it worked well (just make sure that the path to the .m3u is correct, if you are running the .exe on a windows machine. It'll give you a path to the file in windows format and that won't work for a plex server on a linux machine.  


As it may take a while for larger playlists to appear in plex, you may want to reload the playlist view in the web view. 


Importing track ratings

If you want to sync track ratings from the outside world into plex, your first step would be to create one playlist for each rating value, for example one playlist for all your tracks with a Five-Star-Rating. With this playlist, follow the steps to import the playlist to plex. 

As soon as you can see the new playlist, convert it to a collection. You may want to use Casvt's "playlist_to_collection" script for that which is also on github. Once you have the collection, you can tag all the tracks with the rating of your choice. 










Wednesday, May 22, 2024

Sonic Adventure: How to save it as a playlist and more

 




One of the best features of plex and plexamp is the ability to create a smooth audio journey starting with one track and ending with another after an hour or so. You need a server which is able to do a sonic analysis of the tracks in your library and a plex pass to enjoy the feature. 

If you are happy with the journey, you may want to save the track sequence for later which you can do in plexamp by hitting the three dots at the bottom and save the queue as a playlist. 

Or you can create such a playlist right on the server by using a bit of python. This could prove useful, for example, if the two endpoint-tracks are to be determined by certain criteria, such as their genres, certain moods or the date they were added to the library. Here is a link to a script where the user enters the titles of the start and end tracks and has the opportunity to apply filters such as the user rating, the play count or the track genre. Keep in mind that these filters will shorten the resulting playlist, so the outcome very much depends on the size of your library and the filters you apply. If you want the original length of the playlist, leave all filters simply blank. 

Sunday, December 17, 2023

Track genres have arrived. But now?

    

                

I would always recommend Plex as a music server in combination with the Plexamp app. 

However, there are some weaknesses. One of them is that it doesn't read the genre tags of the tracks at track level, but only at album level. This means that you cannot distinguish between the piano-accompanied ballad and the dance track on the same album.

Nor can you filter out the occasional Christmas song on an album or, conversely, elegantly add it to a Christmas playlist. 

As a workaround, however, you can use the mood tags, which can be edited at track level and are available for search functions.
If you don't want to do this track by track, the question arises as to whether you can quickly bulk tag the tracks to be tagged with a mood.

Is it christmas? How can I quickly tag many tracks with "christmas"?


You can do this by creating a playlist in the plex web app, for example with all tracks that have the word 'christmas' in the album or track name. You can then use a python script to tag all tracks in the playlist with the mood tag 'Christmas' (as a replacement for the missing genre tag). You can use this script, for example. 

In its latest version, plex recognizes track genres. However, at the moment they can't be edited in the interface. You can edit them in software like mp3tag and refresh the album though. Finally, editing is possible in plex web. Click on the stylo of the track and go to tags. If you don't have genres there, you are either on an older version of plex web or on a local version which has not been updated. 

Where are the track genres to be seen?

You can use the track genres as filters for say, a playlist which excludes some genres like Christmas or Classical Music. Go to library, tracks and you are able to list all tracks who have a particular genre or create playlists and collections using them as filters. 

However, you cannot see the filters in the album view. As a workaround, you can use python code to see and also to modify the genres. Here's some quick and dirty code which offers the missing album view.




Saturday, December 16, 2023

Create your own Radio: Here's how:

   

                

Plexamp is a wonderful companion app to listen to music in your plex library. You can create artist's radios, album mixes, or track radios.

But once you've worked up an appetite, you'll want more: 

You can't create radios in plex web, the sonic proximity to the source tracks can't be determined and you can't combine two tracks or two artists. You also can't rule out the possibility of tracks heard in the last few weeks reappearing, etc. 

But wait, all this can be achieved with a python script.

An example can be found with 'Plex TraxRadio' on my github pages. The script stores in a plex playlist some tracks of the artist the source track comes from and adds sonically similar tracks of a certain distance. I also remove possible duplicates and take into account the rating of the tracks. In the published version, no tracks with a bad rating are included, but unrated tracks are. 

Have no fear...


It should be said again that I am not a professional coder, quite the opposite. Most of it was created in interaction with ChatGPT...

The possibilities with python are almost endless. For example, you could also take into account the genre(s) and much more.... 


Friday, September 15, 2023

Ratings can be exported and saved to the files!

    

                

Ratings can be exported and saved to the files!


Even regular users of plex do not know how ratings they gave to tracks in the music library can be exported and saved in the files. In the past, I have used a workaround which meant to create a playlist with tracks of the same rating, exporting that playlist and import it to a tagger like mp3tag.

While this can be done, there is also the possibility to use a python script which fetches the ratings of the tracks be it in the whole library or just an album or a subset of the library like for example all tracks which were rated in the last week or so.  Once this is working, it is by far a faster method to backup all ratings!

Python is not so difficult as one would expect, especially if you can get mostly helpful hints from chatgpt and the like. For starters you might take a look at some scripts on github. But beware: they usually cannot be used out of the box and must be adapted to your specific use case. 

The wonderful world of filepaths and non-standardized tagging

Under "plex_for_music, you will find two scripts which may serve as a starting point. One is updating the files the ratings of which were updated in plex in the last days, weeks or months, the other takes a different approach and updates all files with plex user ratings in a given range of albums, for example all albums which have A as the first letter in their title. It might be a good idea to start with the latter one to initially update the whole library and then use the former to update from time to time. 

If you take a look at the codes you will see that the first thing you have to do is adapting it to your setting. If there is only one operating system involved, some of the transforming stuff can be deleted. Of course you may have your own folder structure and you have to adapt the script to it. Furthermore, the code to write the rating to the files is specific for the way media monkey works and if you don't use media monkey be aware that other players might take a different approach and change the code accordingly. 

Update: An alternative tool was released lately which looks pretty good might be worth checking out: https://github.com/rfgamaral/PlexMusicRatingsSync

Saturday, July 1, 2023


Backing up album information and the joy of scripting.

In combination with plexamp, plex is a great music server and I cannot find any alternative really working as a substitute for either plex or spotify. 


Different Levels

But you have to accept that plex was not built for music and thus has a different approach than mp3 players like foobar or music organization tools like mediamonkey: It is focussed on the artist and album level. This results in the one major flaw plex has: It is not working well when it comes to compilations. (The reason is obvious: On the artist/album level, compilations do not show the artists on the different tracks and plex will (if id3 tags are properly set) recognize such albums as coming from "Various Artists". )

This difference in approach means that by far not every valuable information in your plex library is mirrored by id3tags in your files: Information such as artist info, similar artists, album reviews, sonically similar albums are on the artist or album level and therefore not reflected in the tags of individual files. 

A loss of that information certainly is tolerable if you have never added anything to what plex automatically has created. But over time, a lot of us added either a missing album review, wrote one on our own or simply changed the Release Date of the record to the date where the recording was actually made (which helps a lot to have consistent decade playlists!)


Backup with scripts is no rocket science

Although plex offers the possibility to backup your database (which is always a good idea), this does not help if you want to access the information outside of plex. And you never know, no software will be there forever, you should never completely rely on proprietary code. 

So this is where scripting comes in. If you want to maintain your metadata well, you can't do without a script or two anyway, but you should run a script for backup purposes at the latest. 

For backing up album reviews and the recording data of albums, I provide the script PlexExportAlbumNFO on github. It runs through all the albums in the library and creates an .nfo file in the folder structure of the hard disk. 

If you are not familiar with python, you can make the script work with a few simple steps. Even for beginners, this is not rocket science and may be feasible with a little research on the internet or in discussion with bing chat. 

And if you're hungry for more, I've provided a number of other scripts for maintaining metadata specifically for music libraries in plex: jackctra/plex_for_music .


Saturday, March 11, 2023

  workarounds



Playlists



Merging playlists is not possible by using a direct command. But you can use a workaround:

1. Open Playlist „A“ and put all tracks into the queue for listening (use the 3dots-context menu for that)
2. Open Playlist „B“ and do the same for the tracks in this playlist
3. Now open the queue and create a new playlist. In order to do so, go to the listing symbol in the player first and all tracks will be displayed. Then, use the  symbol in the upper right corner with the plus-sign to create your new merged playlist.

Wednesday, February 1, 2023

Move plex server from Linux/Synology to Windows PC and vice versa



 workarounds

Move a Server without losing Data


  I had my music library on a Synology NAS and was quite happy with it - till I discovered plexamp and its sonic analysis feature which cannot be used on an ARM cpu like mine. I decided to move the server to a powerful windows system, did the sonic analysis there and moved the whole library again to a linux mini pc - including the sonic analysis files. The files themselves are still kept on the NAS.

You have to copy the database and change the path structure like this (steps for moving from a Synology Nas (Server 1) to windows PC (Server2) , if you want to move from windows to linux, the path structure is of course the other way around. 


  1. Set up server 2, create new library pointing at the files on the NAS, start search and cancel immediately after.
  2. Turn off „Empty recycle bin automatically“
  3. Note root path by looking at a file, you need that later on.
  4. Stop both! servers.
  5. Create a Back up to a new folder with file station. The Database is found /var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases. Don‘t touch original database just in case something goes wrong. Also backup folders metadata and media.
  6. Adjust paths. Use "DB Browser for SQLite" (sqlitebrowser.org), SQLiteSpy is recommended in forums, but it did not work.a) Open the database com.plexamp.plugins.library.db, which can be found in Windows in the folder appdata/local/Plex Media Server/Plug-in Support/Databases. Click on the tab „Browse Data“.b) Then go to the section_locations table and change the root path as required for the new server.c) Change all single entries, because the slashes have to become backslashes. Also the root location is different. For a Music library, you have to go to the section „media_parts“ and there to the column „ file“ Replace slashes with backslashes using the commands update media_parts set file = replace(file, '/', '\');and e.g. update media_parts set file = replace(file, '/drive1', 'D:');.
  7. Save (very important! The UI looks like it automatically saves changes, but it doesn‘t)
  8. Replace .db on server 2. You may also replace Media and metadata which were backed up in step 2. If you have already sonic analysis files, move that folder too. 
  9. Restart server 2 and compare.

Monday, December 12, 2022

 workarounds

Tags

You can of course let plex do all the work for you. But if you have your music tagged properly, you'd rather want plex to import your tags. You should instruct plex to do so under library settings: prefer local media. 

Genre

Plex differs from ID3tags in your tracks as it recognizes genre tags on the artist and the album level but not on the track level. However, the album genre is derived from the track genre if the tags are imported from your local media assets. 

If you want to assign the album to more than one genre, make sure that the id3tag genre uses the divider ";". Example: 

ID3tag: "Pop"           -> Plex shows "Pop"
ID3tag: " Pop/Rock" -> Plex shows one genre only: "Pop/Rock"
ID3tag: "Pop; Rock" -> Plex attributes two genres: "Pop" and "Rock"




Tuesday, November 29, 2022

Plex for Music: Ratings Workarounds

 

Plex is a great personal streaming service when you use plexamp. Especially if you are using lossless flacs, it can easily replace spotify. However, you soon realize that plex has been created with movies and not music in the minds. I played around with plex in recent months and like to share my experiences with plex and some third party tools or workarounds which can be a great help to improve listening experience even further. 
 
 A word concerning my setup: I use plex on a Synology Nas with an ARM-Processor, so no Docker Installation, no Supersonic functionality on plexamp. At home, I use a Windows Machine to access the plex installation via web. Same applies when using an ipad, either I listen to music, then I use plexamp or I fiddle around, then I access via web. The Ios app of plex just works fine for playing movies (which I don't use much). 


Ratings

How to Save Ratings in id3tags
Plex offers a great way to rate your tracks, for example on the way by using plexamp. The ratings are saved in the database though and not in the id3-tags of the files. You could change that by syncing playlists with your current ratings in plex with your file system, the process is described in my post on playlists. 

How to assign Ratings in a playlist-collection
Say you have a playlist and you want to mass tag all tracks with the same rating. Plex doesn't allow assigning properties like song ratings in a playlist. The workaround is to transform the playlist into a collection. I have described the process in my post on collections. UPDATE: You can also use a python script specifically written for that usecase which can be found here.

Plex for music: Compilations Are your tracks tagged well enough?

 

Plex is a great personal streaming service when you use plexamp. Especially if you are using lossless flacs, it can easily replace spotify. However, you soon realize that plex has been created with movies and not music in the minds. I played around with plex in recent months and like to share my experiences with plex and some third party tools and workarounds which can be a great help to improve listening experience even further. 
 
 A word concerning my setup: I use plex on a Synology Nas with an ARM-Processor, so no Docker Installation, no Supersonic functionality on plexamp. At home, I use a Windows Machine to access the plex installation via web. Same applies when using an ipad, either I listen to music, then I use plexamp or I fiddle around, then I access via web. The Ios app of plex just works fine for playing movies (which I don't use much). 

The issue with Compilations


It is a well known issue that plex can't handle compilations well. The reason is that the track artist is just a text field and not a usable attribute in the database. 

If you want to keep your compilation as one album, you have to tag the album artist as "Various Artists". In this case tracks will not show up on the artist page. At least you can search for the artist and that will give you also the tracks of a compilation as separate tracks. 

How to mass-tag missing track artists


One caveat though: You should have your tracks properly tagged, with both Various Artists in the album artist field and the name of the artist in the trackartist field. 

Say you have been missing out and you'll have quite a lot of tracks without a trackartist. The search will not render the expected result. If you don't want to go into every single track and fill in the track artist, you can use a mass tagger like mp3tag and import the appropriately tagged tracks back to plex. 

First, go to your music library and filter all tracks with missing or false id3 tags. For example, let plex show you all tracks with the album artist "Various artist", then sort by track artist and mark those tracks without a track artist assigned. 

 Create a playlist with those tracks. Then export the playlist as described in a previous post, import it into mp3tag and update the tags. As a last step, let plex read the updated tags. 

VoilĂ : Plex search should now find those tracks as well. 


Playlists vs. Collections

In case you wondered: What is the difference between playlists and Collections?
One thing I find the most striking is that playlists are based on tracks whereas Compilations can show either tracks or whole albums. 

If you want to reorganize your files grouped in a playlist, you will be disappointed: playlists don't offer any possibilities to manage the items. Collections are more flexible: You can change properties both on a collection level for all items but also on the individual item level. 

Transform playlists into collections and vice versa

If you want to transform a collection into a playlist, you can do so by using the context menu. But there is no way to do the opposite on the web interface. However, you can use a script by casvt on github.

Once you have figured out how to use python script, the process is fairly easy.  

1. copy the script to your machine to a folder, i.e.  PlexScriptsMisc
2. identify your plex-server-ip, your plex-port (mostly: 32400) and your individual X-Plex-Token, fill that into the script and save.
3. Start PowerShell and change to that folder: cd C:\Users\....
4. Create a virtual environment: python -m venv pmm-venv) and activate: .\pmm-venv\Scripts\activate
5. Install requirements:: pip install requests
6. make use of optional arguments:  

  -h, --help            show this help message and exit
  -l LIBRARYNAME, --LibraryName LIBRARYNAME
                        Name of target library (i.e. "music ")
  -p PLAYLISTNAME, --PlaylistName PLAYLISTNAME
                        Name of target playlist (i.e. "No1s")
  -r, --RemovePlaylist  Remove source playlist afterwards

7. : run: python playlist_to_collection.py  (i.e. "python playlist_to_collection.py -l "music" -p "No1s")



Plex for music: Show codecs on the cover

 

Plex is a great personal streaming service when you use plexamp. Especially if you are using lossless flacs, it can easily replace spotify. However, you soon realize that plex has been created with movies and not music in the minds. I played around with plex in recent months and like to share my experiences with plex and some third party tools which can be a great help to improve listening experience even further. 
 
 A word concerning my setup: I use plex on a Synology Nas with an ARM-Processor, so no Docker Installation, no Supersonic functionality on plexamp. At home, I use a Windows Machine to access the plex installation via web. Same applies when using an ipad, either I listen to music, then I use plexamp or I fiddle around, then I access via web. The Ios app of plex just works fine for playing movies (which I don't use much). 

Show codecs on the cover 


 For starters, plex doesn't care about the codec as it can easily convert high bitrates into bitrates fit for streaming. But if you have started to rip your CDs years ago, it is likely you have started with mp3 rips and turned to flac in later times. Is there an easy way to see whether you have a lossless version of your album or even have encoded once in mp3-quality and later on in lossless quality? First of all, you should add "flac" to all album titles with flac rips. I used Mediamonkey for that and let plex scan my library again. If you want to have a nice cover with a codec ribbon like that
you can use the awesome plex media manager for that. Go to https://metamanager.wiki/en/latest/ where the installation process is explained in detail. As of 11/22, applying an overlay to album covers would give you distorted images if you use the master version of PMM. However, if you use the nightly, that has been corrected. You need to write your own "overlay-music.yml", but if I could do it, you can as well.

Tuesday, November 1, 2022

Plex for music workarounds: How to import or export playlists

Plex is a great personal streaming service when you use plexamp. Especially if you are using lossless flacs, it can easily replace spotify. However, you soon realize that plex has been created with movies and not music in the minds. I played around with plex in recent months and like to share my experiences with plex and some third party tools and workarounds which can be a great help to improve listening experience even further. 
 
 A word concerning my setup: I use plex on a Synology Nas with an ARM-Processor, so no Docker Installation, no Supersonic functionality on plexamp. At home, I use a Windows Machine to access the plex installation via web. Same applies when using an ipad, either I listen to music, then I use plexamp or I fiddle around, then I access via web. The Ios app of plex just works fine for playing movies (which I don't use much). 

 Playlists 


 If you are wondering how to create a playlist in plex, don`t go to playlists on the dashboard. You would only find existing playlists there. To create a new playlist, go to the music panel, use the drop-down menu starting with "all", go to the very end and you'll find "Custom Filters". With them, you can create your playlist and don't forget to save the playlist. The whole process is described very well on https://www.ryananddebi.com/2019/08/26/plex-how-to-create-smart-auto-updating-music-playlists/. 

Say you'd like to import an existing playlist on your computer to plex, you can't do that out of the box but have to use a third party tool. Be advised: This is not a simple process but requires some effort and the willingness to use the power shell of windows and get aquainted with software hosted on github. There are several projects around to import playlists. For me, the playlist-importer on https://github.com/gregchak/plex-playlist-import is fine, because, once the setup is done, it has an interface.

The setup can be a bit tricky. Make sure that the paths conform to your setup. For a linux server, the path to the m3u file must use slashes (/). Also make sure that plex can find the file, i.e. it must be in a folder, the plex library path points to. 
What regards the paths to the tracks in the m3u-file: Have a look at the track info within plex to see how the path should be written, for a linux server, the path must have slashes. 
Lastly delete any extra lines in the files like  "#EXTM3U" or "#EXTINF: ..."  which are sometimes written by programs like mp3tag when creating a playlist. 


Exporting plex playlists to your machine should also be possible. One alternative is the semi-official plugin WebTools NG to export lists of your media with all metadata.
Go to https://github.com/WebTools-NG/WebTools-NG/wiki/Export. You'll get a database which shows inter alia the artist name, the track name and the full path seen by plex. Once you have that, you can create a .m3u playlist (be sure to alter the filepaths accordingly!) which can be played by any player software. 

There is an alternative way to export a single playlist by using commands in your webbrowser. You a need to know the ip-adress of your server, its port and your personal plex-token. If you don't know about the latter, go to the official plex support web pages

One more thing is required: the id of the playlist. You can find that out by using the following command structure in your browser: http://(yourserver_ip:port)/playlists?X-Plex-Token=(yourpersonaltoken)
Example: http://123.456.789.99:32400)/playlists?X-Plex-Token=12345abc678de

The result is an xml list containing the information on your playlists. 

If you have the playlist id, use the following command structure:  http://(yourserver_ip:port)/playlists/(playlistid)/items?X-Plex-Token=(yourpersonaltoken)

Save the contents into a newly created .xml file, open it in Excel and search for the path of your library items. Then copy this column into a newly created .m3u file. 

Last step: Change the paths. In my case, the paths in plex do not match with those on my windows pc. You can use an editor to change the paths by using the search and replace commands. As my plex server runs on a NAS, I have to substitute slashes for backslashes and change the folder structure.

Synchronise ratings 

If you use plex to listen to your music but use a software like mediamonkey on your pc, you would probably like to synchronize ratings. You can do that by creating playlists for example with *****-star tracks and exchange the playlists by using the aformentioned process.

Edit: Alternatively, use a python script to export your ratings directly to the files. This can be done even if you have no deep knowledge of python. See my post on that.