Revert "update version"

This reverts commit f866d9b42c38ff87eb9a0546c53f454ba42689c9.
This commit is contained in:
Fede14 2024-02-28 01:00:19 +01:00
parent 594aa1840e
commit 3f54deb927
2 changed files with 9 additions and 4 deletions

View File

@ -193,7 +193,12 @@ class M3U8_Segments:
"""Single req to a ts file to get content""" """Single req to a ts file to get content"""
url_number = self.segments.index(ts_url) url_number = self.segments.index(ts_url)
is_valid = ( str(url_number) in failed_segments )
is_valid = True
for failde_seg in failed_segments:
if str(failde_seg) in ts_url:
is_valid = False
break
if is_valid: if is_valid:
@ -307,8 +312,8 @@ class M3U8_Segments:
with open(file_list_path, 'w') as f: with open(file_list_path, 'w') as f:
for ts_file in ts_files: for ts_file in ts_files:
absolute_path = os.path.abspath(os.path.join(self.temp_folder, ts_file), current_dir) relative_path = os.path.relpath(os.path.join(self.temp_folder, ts_file), current_dir)
f.write(f"file '{absolute_path}'\n") f.write(f"file '{relative_path}'\n")
console.log("[cyan]Start join all file") console.log("[cyan]Start join all file")
try: try:

View File

@ -1,5 +1,5 @@
__title__ = 'Streaming_community' __title__ = 'Streaming_community'
__version__ = 'v0.8.6' __version__ = 'v0.8.5'
__author__ = 'Ghost6446' __author__ = 'Ghost6446'
__description__ = 'A command-line program to download film' __description__ = 'A command-line program to download film'
__license__ = 'MIT License' __license__ = 'MIT License'