fixed LooseVersion not working

This commit is contained in:
Andreas Preikschat 2013-04-03 12:39:42 +02:00
parent 440876eff7
commit 74eb0b59fb
1 changed files with 4 additions and 4 deletions

View File

@ -61,11 +61,11 @@ if VLC_AVAILABLE:
VERSION = vlc.libvlc_get_version()
except:
VERSION = u'0.0.0'
#FIXME: python3 - LooseVersion does not work when a string contains letter and digits (2.0.5 Twoflower).
# LooseVersion does not work when a string contains letter and digits (2.0.5 Twoflower).
# http://bugs.python.org/issue14894
# 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)
if LooseVersion(VERSION.split()[0]) < 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']