The important part for DVD seems to be launching “play disc” immediatley after the disc is inserted, before the kodi “removable drive message” pops up. So this script will eject the DVD (if inserted), otherwise it will stop anything playing, inject the drive tray, then test if its a DVD or Bluray inserted and play each disc with the appropriate method. Kodi_command = 'kodi-send -action=\"PlayDVD\"' Os.system('sudo mount /dev/sr0 /mnt/DVD') The next is a script i’ve called “DVD_Fix” which seems to work more often than not: #!/usr/bin/python So it stops anything currently playing, ejects the disc and reloads the favourites screen (so you can launch the next script when you have swapped the disc). Kodi_command = 'kodi-send -action=\"ActivateWindow(Favourites)\"' Kodi_command = 'kodi-send -action=\"Stop\"' So the first is the “eject” script which is fairly straightforward #!/usr/bin/python I’ve now been watching some DVD’s with Kodi and i’ve written a couple of scripts which seem to (almost) guarantee reliable playback. I haven’t ripped a DVD as I don’t have any did ripping software setup but i’m fairly confident that the drive is ok. So i’ve tested the drive attached to my PC and any DVD I have tried has played reliably. Ok so i’ve had a chance to play around with this some more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |