Closed PiervitoCreanza closed 1 year ago
Hi sorry for getting back to you just now.
Thank you for making this! Looks great, quite an easy fix. But just before I merge, what do you think, should book resources even be synced in the first place? Or should they be in the excluded modnames?
Can you give me the name of the course that contains this file so I can try enrolling in it and recreating this myself? out of curiosity lol, I'd like to see the whole response from the core_course_get_contents
call
No worries! I think that it would be better to sync them, as there may be useful files inside. Here is the course ID: 787840
.
For some strange reason, HTML files inside a book component have their webeep file size property set to 0:
Because of this, since 0 is obviously different from the actual file size, the file gets downloaded on every sync event.
I don't know if this is the standard behaviour of HTML files located in a book module, but I think that the size property should be checked in order to verify that it isn't zero. This would prevent new downloads on every sync.