fix loading media in Service bug

This commit is contained in:
rimach crichter@web.de 2011-07-28 22:34:20 +02:00
parent ed9d704db9
commit ea7e03406c
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)

View File

@ -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):
""" """