aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDPlayer
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@2mac.waldobjekt.org>2009-07-02 17:56:43 +0200
committerFelix Domke <tmbinc@2mac.waldobjekt.org>2009-07-02 17:56:43 +0200
commitc7742c80580030fd1e5c297114b0080baa11c655 (patch)
tree75d54d37e2435255c5357644f831b0418f791bf6 /lib/python/Plugins/Extensions/DVDPlayer
parentc33e097f76f57afc0b5214b31cab554aa92b0d82 (diff)
downloadenigma2-c7742c80580030fd1e5c297114b0080baa11c655.tar.gz
enigma2-c7742c80580030fd1e5c297114b0080baa11c655.zip
when starting from scanner, don't ask if DVD in drive should be played, just do it.
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDPlayer')
-rw-r--r--lib/python/Plugins/Extensions/DVDPlayer/plugin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py
index 32e35933..e7a4601e 100644
--- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py
+++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py
@@ -349,6 +349,8 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarP
from Plugins.SystemPlugins.Hotplug.plugin import hotplugNotifier
hotplugNotifier.append(self.hotplugCB)
+ self.autoplay = dvd_device or dvd_filelist
+
if dvd_device:
self.physicalDVD = True
else:
@@ -575,9 +577,11 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarP
self.askLeavePlayer()
def opened(self):
- if len(self.dvd_filelist) == 1:
+ if self.autoplay and self.dvd_filelist:
# opened via autoplay
self.FileBrowserClosed(self.dvd_filelist[0])
+ elif self.autoplay and self.physicalDVD:
+ self.playPhysicalCB(True)
elif self.physicalDVD:
# opened from menu with dvd in drive
self.session.openWithCallback(self.playPhysicalCB, MessageBox, text=_("Do you want to play DVD in drive?"), timeout=5 )