Skip to content

Fix repeated downloads for unchanged files - #154

Merged
D-VR merged 2 commits into
masterfrom
fix-unchanged-file-redownloads
Jul 5, 2026
Merged

D-VR merged 2 commits into
masterfrom
fix-unchanged-file-redownloads

Conversation

@D-VR

@D-VR D-VR commented Jul 5, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes repeated re-downloads and false local-conflict handling for unchanged files.

This improves cache/change detection for Moodle files, Sciebo files, linked files, Opencast videos, and embedded videojs nodes. It preserves valid cached markers for skipped files, avoids poisoning the cache after failed downloads, stores content hashes for downloaded bytes, handles duplicate same-named sections more reliably, uses Opencast checksums and conditional GET validation where available.

Adds regression tests for unchanged-file skips, failed-download retries, Sciebo marker handling, duplicate sections, and Opencast/videojs ETag fallback.

D-VR added 2 commits July 5, 2026 11:30
Preserve remote version markers so unchanged direct links and Sciebo files are skipped instead of fetched again.

Keep scanner-provided Sciebo PROPFIND markers when a download response has a different GET ETag, and retain cached content hashes for existing files that were skipped rather than actually downloaded in the current run.

Match cached nodes through duplicate same-named sections by stable URL, name_clash_id, or id. This avoids false updates and conflict copies when Moodle sections collapse to the same local path but contain distinct same-named files.
for opencast nodes, actually track json responses from the episodes API to use content hashes etc

add a get based fallback for nodes without e-tags set, to actually check if they changed and don't re-download them
@D-VR D-VR added the bug Something isn't working label Jul 5, 2026
@D-VR
D-VR merged commit 275f32e into master Jul 5, 2026
4 checks passed
@D-VR
D-VR deleted the fix-unchanged-file-redownloads branch July 5, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant