2010-06-13, 17:28
Hello to all ;-)
I found a strange problem with the following sample code.
This sample code allways return the value 3 even if no
* tray is open
* disk is inserted and the tray is closed
On my old notebook the code was working ....
with my new notebook with Ubuntu 10.4 and xbmc 9.11 the function
xbmc.getDVDState() allways return value 3
Here comes the pastebin from the log ....
http://pastebin.ch/5797
I need this function inside my script to check the state ...
Any help out there ?
Inside my new notebook I have a blueray drive.... could this make the trouble ?
Regards
Hans
I found a strange problem with the following sample code.
Code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
####################### IMPORTS #######################
import xbmc, xbmcgui
import os, sys, thread, stat, time, string, re
#######################################################
#######################################################
####################### MAIN ##########################
#######################################################
if __name__ == '__main__':
dvd_info = xbmc.getDVDState()
print "DVD-State value : " + str(dvd_info)
######################################################
This sample code allways return the value 3 even if no
* tray is open
* disk is inserted and the tray is closed
On my old notebook the code was working ....
with my new notebook with Ubuntu 10.4 and xbmc 9.11 the function
xbmc.getDVDState() allways return value 3
Here comes the pastebin from the log ....
http://pastebin.ch/5797
I need this function inside my script to check the state ...
Any help out there ?
Inside my new notebook I have a blueray drive.... could this make the trouble ?
Regards
Hans