Get rid of annoying strings in MP3 song names. Inspired by Doug's Script for Search & Replace.
- iTunes (need your library XML file)
- Python3
pip3 install -r requirements.txt
python3 index.py -i 'iTunes Music Library.xml' -s 'feat.' -r 'Featuring '
You will then be presented with a confirmation for each result:
/Users/Amit/iTunes/Nas/Hip Hop Is Dead/Hustlers feat.The Game.mp3
Replace "feat." with "Featuring " [y/n] ?
Note: If you don't want to be prompted for each result, add the --noconfirm
flag.
By default, the first time you load your library, it will be cached using Pickle. Useful if you have a large library. To disable this, add the --nocache
flag when you execute the script.
Option | Description | Required? |
---|---|---|
-i |
iTunes Library File | Y |
-s |
Search term | Y |
-r |
Replace search term with | Y |
--nocache |
Don't cache library results | N |
--noconfirm |
Don't prompt for changes | N |