mirror of https://github.com/devine-dl/devine.git
HLS: Ignore possible folders when doing naive final merge
This commit is contained in:
parent
323577a5fd
commit
9e0515609f
|
@ -481,10 +481,11 @@ class HLS:
|
||||||
else:
|
else:
|
||||||
with open(save_path, "wb") as f:
|
with open(save_path, "wb") as f:
|
||||||
for discontinuity_file in sorted(save_dir.iterdir()):
|
for discontinuity_file in sorted(save_dir.iterdir()):
|
||||||
|
if discontinuity_file.is_dir():
|
||||||
|
continue
|
||||||
discontinuity_data = discontinuity_file.read_bytes()
|
discontinuity_data = discontinuity_file.read_bytes()
|
||||||
f.write(discontinuity_data)
|
f.write(discontinuity_data)
|
||||||
discontinuity_file.unlink()
|
shutil.rmtree(save_dir)
|
||||||
save_dir.rmdir()
|
|
||||||
|
|
||||||
progress(downloaded="Downloaded")
|
progress(downloaded="Downloaded")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue