xbmc.Player().play(path) - How can I find its return code ?
#1
Hello,


I'm creating a script that tries to access streamed files that
may be named on slightly different patterns.

For example, the file may be named:

either 20081201_csoj.wmv
or csoj_20081201.wmv
or an other arbitrary name.


My idea is to try to play first the most common name pattern,
and if the Player can't find it, give a try to the alternate
name pattern, etc.


For that I would need to grab the return code from xbmc.Player().play(path), and know what is the code
for "file not found"

I tried retcode = xbmc.Player().play(path), with no success,
it seems empty.

Does anyone have an idea on how to achieve it ?


Thanks a lot for your help
J.B.
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.Player().play(path) - How can I find its return code ?0