forked from openlp/openlp
fix loading media in Service bug
This commit is contained in:
parent
ed9d704db9
commit
ea7e03406c
@ -125,7 +125,6 @@ class MediaManager(object):
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def video_state(self):
|
def video_state(self):
|
||||||
"""
|
"""
|
||||||
Check if there is an assigned media API and do some
|
Check if there is an assigned media API and do some
|
||||||
|
@ -155,7 +155,6 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
if self.mediaLength > 0:
|
if self.mediaLength > 0:
|
||||||
service_item.add_capability(
|
service_item.add_capability(
|
||||||
ItemCapabilities.AllowsVariableStartTime)
|
ItemCapabilities.AllowsVariableStartTime)
|
||||||
print self.mediaLength
|
|
||||||
service_item.media_length = self.mediaLength
|
service_item.media_length = self.mediaLength
|
||||||
service_item.title = unicode(self.plugin.nameStrings[u'singular'])
|
service_item.title = unicode(self.plugin.nameStrings[u'singular'])
|
||||||
service_item.add_capability(ItemCapabilities.RequiresMedia)
|
service_item.add_capability(ItemCapabilities.RequiresMedia)
|
||||||
|
@ -46,8 +46,12 @@ class MediaPlugin(Plugin):
|
|||||||
self.dnd_id = u'Media'
|
self.dnd_id = u'Media'
|
||||||
self.audio_extensions_list = \
|
self.audio_extensions_list = \
|
||||||
self.mediaManager.get_audio_extensions_list()
|
self.mediaManager.get_audio_extensions_list()
|
||||||
|
for ext in self.audio_extensions_list:
|
||||||
|
self.serviceManager.supportedSuffixes(ext[2:])
|
||||||
self.video_extensions_list = \
|
self.video_extensions_list = \
|
||||||
self.mediaManager.get_video_extensions_list()
|
self.mediaManager.get_video_extensions_list()
|
||||||
|
for ext in self.video_extensions_list:
|
||||||
|
self.serviceManager.supportedSuffixes(ext[2:])
|
||||||
|
|
||||||
def getSettingsTab(self, parent):
|
def getSettingsTab(self, parent):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user