So a lot of people are having problems with the music scanner, and I dug through the logs and figured out what is causing the problem. My iTunes has a lot of music that doesn't have a track number before the track name, i.e., "Artist/Album/Track_Name.mp3" and the scanner will only read music files in the format "Artist/Album/01 - Track_Name.mp3"
In the "Plex Music Scanner.py" file, I found these few lines of code,
# 01 - Track.mp3<br />
trackRx1 = '([0-9]{2})[-. ]*(.*)\.[a-z0-9]{3,4}'<br />
<br />
# Artist - 01 - Track.mp3<br />
trackRx2 = '.*[-. ]+([0-9]{2})[-\. ]+(.+)\.[a-z0-9]{3,4}'<br />
<br />
# 01 - Artist - Track.mp3 ALSO CHECKED IN getTitleTrack<br />
I changed the first regex to
trackRx1 = '(.*)\.[a-z0-9]{3,4}'<br />
to try and solve the problem, but no dice. Admittedly, I'm not very good at regex, so someone with a little more experience than me, how can I adjust the regex to read any audio file name instead of just those that have a track number ahead of it?
Actually, MP3 tracks are scanned in even if they don’t have track numbers on them, as long as it has ID3 tags for that. I suspect something else is the matter.