-
-
Notifications
You must be signed in to change notification settings - Fork 62
Development Environment
Here you will learn how to set up your development environment so that you are best equipped to participate in the project and search for bugs yourself.
The complete development of the project takes place in Visual Studio code. I decided to do this because it is one of the most comprehensive open source editors. Furthermore, Visual Studio Code has one of the largest communities. So you will find online support for every problem.
-
Open Visual Studio Code (vs-code), now we want to install some extensions that will help us to develop. Press
Ctrl+Shift+X
inside vs-code, then search and install the following extensions:
- Python
- Visual Studio IntelliCode
It will take a short while but then we are almost ready to start.
- Now open a terminal by pressing
Ctrl+`
. Alternatively, you can also open a terminal outside of vs-code (e.g. a powershell). Then execute the following commands:
pip install --user black
pip install --user flake8
pip install --user flake8-black
You have done it now you can officially work on the project.
-
First you have to open the project folder, Click on File > Open folder, select the Moodle Downloader 2 project folder.
-
In the Moodle Downloader 2 project folder create a new folder called
debugging-moodle
. In this folder you will need to copy yourconfig.json
and possibly yourmoodle_state.db
if you want to work with the database you have already created to avoid re-downloading all files. -
Then start debugging by pressing [F5], you can then report me any errors.
- Example Config.json and Options
- Change Download Folder
- Download (external) linked files
- Copy a token from the Moodle app
- Telegram Notification
- Additional Youtube-dl Settings
- Use cookies when downloading
- Download public courses
- Set user id and Moodle version number manually
- Exclude file extensions
- Download password protected external links
- Use of external programs to download external links
- Start Moodle dl periodically or via Telegram