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)
- Almost freezes with extreme RAM and CPU spikes on trying to download embedded images HOT 4
- 'staticmethod' object is not callable HOT 4
- Add Regex filtering for black and whitelists HOT 6
- On macos a shortcut should be a webloc file
- The detection of moved files seems to be unreliable
- Ignored --skip-cert-verify --allow-insecure-ssl HOT 8
- Moodle System rejected the Request due to an Invalid parameter value HOT 9
- AttributeError: 'XSOEnumMixin' object has no attribute 'name' HOT 8
- Crash when downloading course information HOT 3
- Don't try to download the mailto links HOT 2
- Moodle rejected system request - invalid_response_exception HOT 3
- Nothing downloads HOT 3
- 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
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.