plexrefreshartist.py is a Python script to refresh the Metadata for Plex Music Artists.
I started collecting Music Videos for Artists in my Plex Music collection, but found that I had to Refresh Metadata for either the whole library or each Artist to get them to show up. This script does it for me.
The script relies on python-plexapi.
$ python3 plexrefreshartist.py -h
-a Artists to refresh (partial match) (optional)
-f Parent folder of Artists (optional)
-s Plex Server Base URL with protocol & port
-t Plex Auth Token
If neither -f or -a are supplied, all Artists will be refreshed!
$ python3 plexrefreshartist.py -s http://<your_plex_server>:<port> -t <plex_token> -a "Fever Ray"
Refreshing: Fever Ray
$ python3 plexrefreshartist.py -s http://<your_plex_server>:<port> -t <plex_token> -a "Mount"
Refreshing: Black Mountain
Refreshing: The Mountain Goats
Refreshing: Mountaineers
Refreshing: Mountains
Refreshing: Purple Mountains
Specify your Global Music Videos Folder to only refresh Artists with videos added since the last refresh.
$ python3 plexrefreshartist.py -s http://<your_plex_server>:<port> -t <plex_token> -f /Media/Library/music_videos/
-
Refresh only updated folders since the last time the script ran
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.