Skip to content

Commit 235ffcd

Browse files
committed
Fix resolution not recognized HLS stream.
1 parent 4dfd739 commit 235ffcd

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

StreamingCommunity/Lib/HLS/downloader.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,9 @@ def select_streams(self):
164164
self.sub_streams = []
165165

166166
else:
167-
# Video selection logic
168-
if str(FILTER_CUSTOM_RESOLUTION) == "best":
167+
if str(FILTER_CUSTOM_RESOLUTION).strip().lower() == "best":
169168
self.video_url, self.video_res = self.parser._video.get_best_uri()
170-
elif str(FILTER_CUSTOM_RESOLUTION) == "worst":
169+
elif str(FILTER_CUSTOM_RESOLUTION).strip().lower() == "worst":
171170
self.video_url, self.video_res = self.parser._video.get_worst_uri()
172171
elif str(FILTER_CUSTOM_RESOLUTION).replace("p", "").replace("px", "").isdigit():
173172
resolution_value = int(str(FILTER_CUSTOM_RESOLUTION).replace("p", "").replace("px", ""))

StreamingCommunity/Util/config_json.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def _precache_common_configs(self) -> None:
8888
('M3U8_CONVERSION', 'param_video', str),
8989
('M3U8_CONVERSION', 'param_audio', str),
9090
('M3U8_CONVERSION', 'param_final', str),
91-
('M3U8_CONVERSION', 'extension', str),
92-
('M3U8_CONVERSION', 'force_resolution', bool),
9391
('M3U8_DOWNLOAD', 'cleanup_tmp_folder', bool),
9492
('M3U8_DOWNLOAD', 'default_video_workers', int),
9593
('M3U8_DOWNLOAD', 'default_audio_workers', int),
@@ -98,8 +96,7 @@ def _precache_common_configs(self) -> None:
9896
('M3U8_DOWNLOAD', 'merge_subs', bool),
9997
('REQUESTS', 'verify', bool),
10098
('REQUESTS', 'timeout', int),
101-
('REQUESTS', 'max_retry', int),
102-
('OUT_FOLDER', 'map_episode_name', str)
99+
('REQUESTS', 'max_retry', int)
103100
]
104101

105102
cached_count = 0

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"DEFAULT": {
33
"debug": false,
44
"show_message": true,
5-
"fetch_domain_online": true
5+
"fetch_domain_online": false
66
},
77
"OUT_FOLDER": {
88
"root_path": "Video",

0 commit comments

Comments
 (0)