Cleanup og variabel-synkronisering
- Rydder op i duplicate kode i download_single_file - Sikrer korrekt type-casting af config-variabler (bool/int) - Verificerer at alle GUI-parametre læses korrekt i main()
This commit is contained in:
@@ -306,17 +306,6 @@ def download_single_file(app, drive_id, item_id, local_path, expected_size, disp
|
||||
else:
|
||||
return False, f"Size mismatch: Remote={expected_size}, Local={final_size}"
|
||||
|
||||
except Exception as e:
|
||||
return False, str(e)
|
||||
if final_size == expected_size:
|
||||
if verify_integrity(local_path, remote_hash):
|
||||
logger.info(f"DONE: {display_name}")
|
||||
return True, None
|
||||
else:
|
||||
return False, "Integrity check failed (Hash mismatch)"
|
||||
else:
|
||||
return False, f"Size mismatch: Remote={expected_size}, Local={final_size}"
|
||||
|
||||
except Exception as e:
|
||||
return False, str(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user