Don't parse mxm - just request lrc!
mrsobakin opened this issue · 0 comments
mrsobakin commented
@fashni
This is a simple trick I discovered while writing a bash script to fetch synced lyrics. I was reverse engineering musixmatch's API and found the same URL you did (mxlrc.py / line 17). And, of course, I was not satisfied with the cryptic mxm
lyrics format that it returned. But this is where our solutions diverge. You wrote a whole mxm
parser, and I... Well, I just YOLO'd it and replaced subtitle_format=mxm
with subtitle_format=lrc
. And to my surprise it worked.
It's nice to have your parser, just in case musixmatch will decide to remove lrc
support. But if your goal is to make a lyrics fetcher - just change the subtitle_format
, and the code will become 10x smaller and simpler.