File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ class DRMHelper(object):
22
22
"""DRM Helper"""
23
23
def __init__ (self ):
24
24
self .addon = None
25
- self .wvcdm_download_base_url = None
26
25
self .wvcdm_download_data = None
27
26
28
27
def _get_system (self ):
@@ -241,7 +240,6 @@ def _lookup_mjh_plat(self):
241
240
def _set_wvcdm_current_ver_data (self ):
242
241
data = requests .get (config .CDM_CURRENT_VERSION_URL ).text
243
242
json_data = json .loads (data ).get ('widevine' )
244
- self .wvcdm_download_base_url = json_data .get ('base_url' )
245
243
plat = self ._lookup_mjh_plat ()
246
244
self .wvcdm_download_data = json_data ['platforms' ].get (plat )
247
245
@@ -392,9 +390,8 @@ def _get_wvcdm(self):
392
390
plat = self ._get_platform ()
393
391
self ._set_wvcdm_current_ver_data ()
394
392
395
- url = os .path .join (self .wvcdm_download_base_url ,
396
- self .wvcdm_download_data [0 ].get ('src' ))
397
- filename = url .split ('/' )[- 1 ]
393
+ filename = self .wvcdm_download_data [0 ].get ('src' )
394
+ url = os .path .dirname (config .CDM_CURRENT_VERSION_URL ) + '/widevine/' + filename
398
395
wv_cdm_fn = self ._get_wvcdm_filename ()
399
396
400
397
if not os .path .isdir (cdm_path ):
You can’t perform that action at this time.
0 commit comments