2007-04-11, 11:30
Hi,
I am writing a script that needs to try to play a file and if it doesn't succeed, i need it to return false. I could check extensions but being that xbmc is always having new media files support etc, this would be a bad way of doing it.
So i was hoping some kind xbmc dev could implement some sort of Return for the xbmc.Player().play() command to python.
So i can simply do:
if xbmc.Player().play(MYFILE):
print "the file played"
else:
print "the file did not play"
or something similar.
Thanks in advance.
Cheers:
Stanley87
I am writing a script that needs to try to play a file and if it doesn't succeed, i need it to return false. I could check extensions but being that xbmc is always having new media files support etc, this would be a bad way of doing it.
So i was hoping some kind xbmc dev could implement some sort of Return for the xbmc.Player().play() command to python.
So i can simply do:
if xbmc.Player().play(MYFILE):
print "the file played"
else:
print "the file did not play"
or something similar.
Thanks in advance.
Cheers:
Stanley87