Allow mpv >=0.23.0 based on daniel-123's tests

This commit is contained in:
Etoh 2020-05-12 19:30:17 +01:00 committed by GitHub
parent 7992464f1e
commit c0cf7a8731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class MpvPlayer(BasePlayer):
ver = MpvPlayer.RE_VERSION.search(subprocess.check_output([playerPath, '--version']).decode('utf-8')) ver = MpvPlayer.RE_VERSION.search(subprocess.check_output([playerPath, '--version']).decode('utf-8'))
except: except:
ver = None ver = None
constants.MPV_NEW_VERSION = ver is None or int(ver.group(1)) > 0 or int(ver.group(2)) >= 29 constants.MPV_NEW_VERSION = ver is None or int(ver.group(1)) > 0 or int(ver.group(2)) >= 23
if not constants.MPV_NEW_VERSION: if not constants.MPV_NEW_VERSION:
from twisted.internet import reactor from twisted.internet import reactor
the_reactor = reactor the_reactor = reactor