-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Add support for lesson
and workshop
module
#48
Comments
Thats a link that is parsed from a description. As requested in #44. |
…ing informations (sorry that forces redownload of some files)
I still have to fix something. I'll let you know as soon as I have tested it successfully. |
You can test it with the latest code, in a testing enviroment (don't destroy your working enviroment :D). As this is a development branch... some files may be downloaded again, because I changed the names of the modules again. |
I just tested it, and it downloaded a bunch of .desktop files which are just links to more php files, but none of the content is being downloaded still. It managed to grab a single php file out of the hundreds there should be. |
actually looking closer, even the .md file it's downloading is only the first couple lines on the page right before the next bolded section / heading. Maybe that's why it's not parsing the "next" link on the lessons. |
Is your moodle public? |
the rest of the php files are moodle links? |
no, it's not a public moodle. and yes, each php file is just the "next" page of the lesson. I've logged responses, is there a way to get more debug output? |
Looking through the "responses.log", it appears all the md files are actually just the descriptions of each week / lesson. So maybe I'm not actually downloading any content at all. I've gone through these lessons already, does it matter to the app whether it's been viewed before? I can still see the content using the mobile app to verify the api |
yes the markdown files are the descriptions of every file and section (as you in the --config explained) |
"next" pages should not downloaded at all... I never saw a plugin that sets next pages in the description xD thats so stupid |
It does not matter that you viewed a file ... The downloader has its own database. |
You need to give me more information what is happening. Is there anything missing? Or are there to much files? I can add an option, to make it optional to parse links from description. Normaly only files from the api are downloaded |
you can also contact me by mail or telegram... |
maybe I am misunderstanding the tool. I was hoping it would download the entire course, all the readings, assignments, and links. It downloaded all the pdf attachments correctly, and submissions / responses. But none of the content. What's your telegram? We can take this offline. |
what content? |
It is fully capable of downloading files of any type (The module name in moodle for that is More supported modules:
It will download all descriptions in markdown format of files, sections and where ever a description is written. Most of the times these descriptions are annoying. But you can delete all local files as you want, they wont be redownloaded, so you can keep the interesting descriptions (markdown files have the extension Descriptions are now parsed for links, and these are traded as If you miss any importend file, you need to give me more information, specialy the responses.log would be good (but only over telegram), it can contain private information. You can decide to not to download some of the modules, you only need to go through the additional configuration, with |
lesson
module
It seems that you can download lessons only if you start an attempt. I don't know what kind of effects this can have. That's also the reason why I don't download quizzes, because I don't want to start the attempt . If an attempt is limited in time it could cause problems for the student. But I will test how it looks like with completed lessons. |
I would be happy if someone implements it and makes a Pull Request. Due to my studies I will not be able to implement this in the near future. |
I created a wiki entry with all the API methods we need to download lessons. |
I have implemented the first half to download lessons. The second half would be to also download the reports, that is, the ratings that can be viewed at You can test the function now and give me feedback. I'm going to have a look at the |
lesson
modulelesson
and workshop
module
I created a wiki entry with all the API methods we need to download workshops. |
If you want that reports of lessons get also downloaded, then please open a new issue |
Avoid duplicates
Describe the bug
Php files are not being downloaded, only the md files even though external files are selected.
The text was updated successfully, but these errors were encountered: