Comments (7)
That would be fine, but it is very unusual to download courses in which you are not enrolled.
Especially because by default you can't see the course content without registering, the admin has to change some settings to make this possible.
Currently I don't have time to implement this, but you can currently try to force the downloader to download a course by modifying the following code.
In this file moodle_connector/moodle_service.py
There, in line 90, all courses you are enrolled in are selected.
courses = results_handler.fetch_courses(userid)
You can add courses manually immediately afterwards.
Like this:
courses = results_handler.fetch_courses(userid)
courses.append(Course(2342, 'Ein Kurs', []))
Where the first parameter of Course is the id of the course, the second the name of the course and the 3rd must be an empty list.
This should work as long as you have read access to the course.
from moodle-dl.
from moodle-dl.
You can have a look in results_handler.fetch_courses
and make a similar function for all courses...
You get a list of all courses in your moodle by calling:
If there are a lot of courses on your moodle, it will not make you happy... because it takes a very long time.
To filter the list, you should first ask for the catagories... and then filter by category.
With the help of the enrollmentmethods
you can see if you can read the course content.
from moodle-dl.
First steps have been taken for this issue :D
Check out Issue #71 for related work.
from moodle-dl.
Cool! 😀
from moodle-dl.
you can now use moodle-dl --add-all-visible-courses
It is released, you are welcome :)
from moodle-dl.
Is that okay or did you imagine it differently?
from moodle-dl.
Related Issues (20)
- Download fails on some courses HOT 1
- Unable to lock cache on Moodle v4 HOT 4
- Retry on timeout
- config.json should be created unreadable to others HOT 2
- Do not download large files HOT 3
- Usage of -nt -u -pw just hangs moodle-dl HOT 1
- Same file with identical content gets downloaded again every time Moodle-DL is executed HOT 5
- NoneType has no len() - not downloading HOT 1
- Size estimation increases during download HOT 8
- Rework optional downloads
- Is there anyway to use it to DL all "Books" on a course? HOT 7
- The Moodle System rejected the Request [invalidprivatetoken] HOT 1
- Quizzes are not properly downloaded HOT 9
- Calendar mod fails with 'dict' object has no attribute 'append' HOT 1
- question re pip install HOT 9
- Add index to subfolders and files
- Encountering this SSL error whilst running --init HOT 4
- Download global grades from a course
- Use pyinstaller to build moodle-dl packages in CI/CD
- Investigate if we can download parts of h5p Modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-dl.