projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d7c3b52
)
[media player] fixed the mistype in audio_extensions tuple(flac/m4a).
author
kos
<kos@dev3>
Tue, 15 Jan 2013 01:46:40 +0000
(10:46 +0900)
committer
kos
<kos@dev3>
Tue, 15 Jan 2013 01:46:40 +0000
(10:46 +0900)
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
patch
|
blob
|
history
diff --git
a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
index
4a7ab9d
..
f61d521
100755
(executable)
--- a/
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
+++ b/
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
@@
-825,7
+825,7
@@
class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
def playEntry(self):
if len(self.playlist.getServiceRefList()):
def playEntry(self):
if len(self.playlist.getServiceRefList()):
- audio_extensions = (".mp2", ".mp3", ".wav", ".ogg", "
flac", "m4a
")
+ audio_extensions = (".mp2", ".mp3", ".wav", ".ogg", "
.flac", ".m4a", ".dts
")
needsInfoUpdate = False
currref = self.playlist.getServiceRefList()[self.playlist.getCurrentIndex()]
if self.session.nav.getCurrentlyPlayingServiceReference() is None or currref != self.session.nav.getCurrentlyPlayingServiceReference():
needsInfoUpdate = False
currref = self.playlist.getServiceRefList()[self.playlist.getCurrentIndex()]
if self.session.nav.getCurrentlyPlayingServiceReference() is None or currref != self.session.nav.getCurrentlyPlayingServiceReference():
@@
-838,7
+838,11
@@
class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
currref = self.playlist.getServiceRefList()[idx]
text = self.getIdentifier(currref)
text = ">"+text
currref = self.playlist.getServiceRefList()[idx]
text = self.getIdentifier(currref)
text = ">"+text
- ext = text[-4:].lower()
+ try:
+ import os
+ nameext = os.path.splitext(text)
+ ext = nameext[1]
+ except: ext = text[-4:].lower()
# FIXME: the information if the service contains video (and we should hide our window) should com from the service instead
if ext not in audio_extensions and not self.isAudioCD:
# FIXME: the information if the service contains video (and we should hide our window) should com from the service instead
if ext not in audio_extensions and not self.isAudioCD: