fixed vlc.py not working

This commit is contained in:
Andreas Preikschat 2013-03-26 21:22:15 +01:00
parent 7790442240
commit 60cf33f23c
1 changed files with 5 additions and 3 deletions

View File

@ -61,9 +61,11 @@ if VLC_AVAILABLE:
VERSION = vlc.libvlc_get_version() VERSION = vlc.libvlc_get_version()
except: except:
VERSION = u'0.0.0' VERSION = u'0.0.0'
if LooseVersion(VERSION) < LooseVersion('1.1.0'): #FIXME: python3 - LooseVersion does not work when a string contains letter and digits (2.0.5 Twoflower).
VLC_AVAILABLE = False # http://bugs.python.org/issue14894
log.debug(u'VLC could not be loaded, because the vlc version is too old: %s' % VERSION) # if LooseVersion(VERSION) < LooseVersion('1.1.0'):
# VLC_AVAILABLE = False
# log.debug(u'VLC could not be loaded, because the vlc version is too old: %s' % VERSION)
AUDIO_EXT = [u'*.mp3', u'*.wav', u'*.wma', u'*.ogg'] AUDIO_EXT = [u'*.mp3', u'*.wav', u'*.wma', u'*.ogg']