Sorry I know nothing about the MythBE module. But from what I've found in the module's Wiki
, getCurrentRecording is supposed to return a Program object.
--- [Edit: just looked at the MythData.Program source...] ---
You can try looking for "4Music" in the Program object's title, as in:
REC1 = be1.getCurrentRecording(1)
if "4Music" in REC1.title:
# do stuff...
There's no need to use the "re" module. At least, I don't think so.