xbmc python dialog without any button
#16
linuxluemmel Wrote:I saw that the xbmc function did return value 3 .....
Did you insert a dvd ?
I can do what I want ... the python code allways have a return value 3 ...-(

this would be the same problem I have

http://forum.xbmc.org/showthread.php?tid=75584

no dvd/cd in ma dvdrom, but i tested on my win32 and work for 3 diff state
Image

but the values in doc is not ok for windows but ok for xbox Huh
PHP Code:
getDVDState(...)
getDVDState() -- Returns the dvd state as an integer.
 
return 
values are:
   
xbmc.DRIVE_NOT_READY
  16 
xbmc.TRAY_OPEN
  64 
xbmc.TRAY_CLOSED_NO_MEDIA
  96 
xbmc.TRAY_CLOSED_MEDIA_PRESENT
 
example
:
  - 
dvdstate xbmc.getDVDState() 
For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
Reply
#17
FrostBox Wrote:no dvd/cd in ma dvdrom, but i tested on my win32 and work for 3 diff state


I have build 26018 (Version 9.11) on this kernel
user@zeta02:~$ uname -a
Linux zeta02 2.6.32-22-generic-pae #36-Ubuntu SMP Thu Jun 3 23:14:23 UTC 2010 i686 GNU/Linux

And everything I have is return value 3 ...

with no media
with dvd-media
with tray open
even with a blueray
Reply
#18
How many optical drives do you have?? I have two, a cd drive and dvd drive. When I tested the DVD drive only(nothing in the CD) I only received a state of 3. But when testing the the cd drive, it functioned properly. My guess is that 'get.DVDState() only looks at the primary drive(at least in Linux)
Reply
#19
Just tried with just the DVDrom and get.DVDState() now works with proper output.
Reply
#20
giftie Wrote:Just tried with just the DVDrom and get.DVDState() now works with proper output.

I only have 1 Drive ... It is a combo Blueray / DVD-Writer

The OS is 10.04 Mythbuntu
XBMC is 9.11

Because I would like to port my ripper-script as a addon I do install a svn
version of xbmc on a diffrent partition.

I wonna report back about the function.

Regards
Hans
Reply
#21
With SVN:31440 it works like expected ...
I have a blueray inside and the functions returns 4
What should we do about the wrong parameters inside the doc ?
Hans
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc python dialog without any button0