Skip to content

Commit b8681ed

Browse files
Only support protocols that exists in manifest_type property
1 parent a25a2df commit b8681ed

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
INPUTSTREAM_PROTOCOLS = {
22
'mpd': 'inputstream.adaptive',
3-
'dash': 'inputstream.adaptive',
43
'ism': 'inputstream.adaptive',
54
'hls': 'inputstream.adaptive',
6-
'm3u8': 'inputstream.adaptive',
75
'rtmp': 'inputstream.rtmp'
86
}
97

10-
HLS_PROTOCOLS = ['hls', 'm3u8']
11-
128
DRM_SCHEMES = {
139
'widevine': 'widevine',
1410
'com.widevine.alpha': 'widevine'

lib/inputstreamhelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def has_widevine_cdm(self):
6161
return False
6262

6363
def supports_hls(self):
64-
if self.protocol in config.HLS_PROTOCOLS and LooseVersion(self._inputstream_version()) >= LooseVersion(config.HLS_MINIMUM_IA_VERSION):
64+
if self.protocol == 'hls' and LooseVersion(self._inputstream_version()) >= LooseVersion(config.HLS_MINIMUM_IA_VERSION):
6565
return True
6666
else:
6767
return False

0 commit comments

Comments
 (0)