fault fix

This commit is contained in:
VineFeeder
2025-11-05 13:49:46 +00:00
parent 5c3e7d5f93
commit 4847653f50
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ name = "envied"
version = "1.4.8" version = "1.4.8"
description = "Modular Movie, TV, and Music Archival Software." description = "Modular Movie, TV, and Music Archival Software."
authors = [{ name = "rlaphoenix and others" }] authors = [{ name = "rlaphoenix and others" }]
requires-python = ">=3.11,<3.14" requires-python = ">=3.10,<3.13"
readme = "README.md" readme = "README.md"
license = "GPL-3.0-only" license = "GPL-3.0-only"
keywords = [ keywords = [
@@ -384,7 +384,7 @@ class DASH:
segment_duration = float(segment_template.get("duration")) or 1 segment_duration = float(segment_template.get("duration")) or 1
if not end_number: if not end_number:
end_number = math.ceil(period_duration / (segment_duration / segment_timescale)) end_number = math.floor(period_duration / (segment_duration / segment_timescale))
for s in range(start_number, end_number + 1): for s in range(start_number, end_number + 1):
segments.append( segments.append(
@@ -485,6 +485,10 @@ class DASH:
DOWNLOAD_CANCELLED.set() # skip pending track downloads DOWNLOAD_CANCELLED.set() # skip pending track downloads
progress(downloaded="[red]FAILED") progress(downloaded="[red]FAILED")
raise raise
# --- unchanged above ---
else: else:
drm = None drm = None
@@ -74,7 +74,7 @@ key_vaults:
# Choose what software to use to download data # Choose what software to use to download data
downloader: aria2c # Caution: n_m3u8dl_re has issues on Windows downloader: n_m3u8dl_re
# Options: requests | aria2c | curl_impersonate | n_m3u8dl_re # Options: requests | aria2c | curl_impersonate | n_m3u8dl_re
# Can also be a mapping: # Can also be a mapping:
# downloader: # downloader: