Open GRBaset opened 2 years ago
Thanks for this suggestion! Once I find some time I can look into it :) I will let you know once I made any progress.
This feature is now available in version 1.52. Look for "Detect updates for previously scanned files" and "Prepend Moodle's last modified timestamp to each file name" in the options. Hope this helps!
I tested it and it seems to be working mostly OK, thank you. However, the last modified timestamp is only prepended when the resource updated, but not in the first download.
Alright I will look into it when I find some time :)
Hello, it'd be nice to have the option to check for updates in already downloaded resources, which is quite a common occurrence in my university's Moodle, and there's no indication in the frontend that they have been updated.
This could be done by sending a HEAD request to get the headers for all files and comparing the
last-modified
header with the previously stored date (I tried it and it works, at least on my Moodle). Then when downloaded, depending on configuration, either store it with another name as a new version or replace the existing file.An additional feature that could be derived from this would be to set the dowloaded file's last modified date, or append it to the name if not possible.
Thanks.