View Single Post
Old 06-07-2010, 11:11 AM   PM User | #2
Samhain13
Regular Coder

 
Samhain13's Avatar
 
Join Date: Aug 2008
Location: Pilipinas
Posts: 165
Thanks: 4
Thanked 18 Times in 18 Posts
Samhain13 is on a distinguished road
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:
Code:
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.
__________________
I am a Man of Truth. I am a Free Human Person. I am a Peacemaker.
** Independent Multimedia Artist in Pasig **

Last edited by Samhain13; 06-07-2010 at 12:05 PM.. Reason: Modified sample code.
Samhain13 is offline   Reply With Quote