You could use this script to read process title to text, and show your "now-playing" in OBS.
requirement: psutil (you can install this from pip easily)
Using command
python OBS_Music_Plugin.py "PROCESS_NAME"
to start
or you can use a shell to start this background.
要不是国内那谁写的OBS插件在我机器上无法读取虾米和Foobar2000的当前播放曲目,我才不会写这个插件呢