diff options
| author | Robert Honz <exislow+github@gmail.com> | 2025-01-05 21:26:11 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2025-01-05 21:26:11 +0100 |
| commit | 8e66cb325986f800ee31629ff58453068c2816d4 (patch) | |
| tree | b1fa70575150504ae81797e28e2ce8ff616c1fda | |
| parent | 84887146974d108b02c574ed4cc50e339a7ce748 (diff) | |
| download | tidal-dl-ng-8e66cb325986f800ee31629ff58453068c2816d4.tar.gz | |
🛠️ Fix: Very short tracks detected as corrupt download.
| -rw-r--r-- | tidal_dl_ng/download.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index 0df6355..5912531 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -198,7 +198,7 @@ class Download: return result_merge, tmp_path_file_decrypted def _segments_merge(self, path_file, dl_segment_results) -> bool: - result: bool + result: bool = True # Copy the content of all segments into one file. try: @@ -212,9 +212,9 @@ class Download: # Delete segment from HDD dl_segment_result.path_segment.unlink() - result = True except Exception: - result = False + if dl_segment_result is not dl_segment_results[-1]: + result = False return result |
