Skip to content

Commit 5bc2fce

Browse files
committed
prevent error on version checking
related to jonian/acestream-launcher#43
1 parent ab74ae6 commit 5bc2fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acestream/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def getstream(self, **params):
123123
is_hls = params.pop('hls', False)
124124
apiurl = 'manifest.m3u8' if is_hls else 'getstream'
125125

126-
if LooseVersion(self.version) < LooseVersion('3.1.29'):
126+
if self.version and LooseVersion(self.version) < LooseVersion('3.1.29'):
127127
params['sid'] = params.pop('pid')
128128

129129
return self.get('ace/{0}'.format(apiurl), format='json', **params)

0 commit comments

Comments
 (0)