Comments (2)
Mh, the idea was that moodle-dl creates URL files for these mailto links. So that you always have a fast access to the professors mail adresse in your files. It also should not create errors for it in the logs, because it should detect that it is not downloadable in firstplace (at least thats how I remember it).
I will have a look at it after vacations.
from moodle-dl.
This are the logs, this is super low priority so enjoy your vacations!
2023-06-07 11:10:39 DEBUG {task} [0] Starting downloading of: [Course]/[Section]/[assignment]/mailto:[email protected]
2023-06-07 11:10:39 DEBUG {task} [0] Creating a shortcut
2023-06-07 11:10:39 ERROR {task} [0] AttributeError("'NoneType' object has no attribute 'endswith'")
2023-06-07 11:10:39 ERROR {task} [0] Error while trying to download file: 'NoneType' object has no attribute 'endswith'
2023-06-07 11:10:39 DEBUG {task} [0] file size: 229; downloaded: 0
2023-06-07 11:10:39 DEBUG {task} [0] Traceback:
Traceback (most recent call last):
File "/home/user/.local/lib/python3.11/site-packages/moodle_dl/downloader/task.py", line 727, in real_run
if self.opts.download_linked_files and not self.is_filtered_external_domain():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.11/site-packages/moodle_dl/downloader/task.py", line 565, in is_filtered_external_domain
if domain == entry or domain.endswith('.' + entry):
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'endswith'
And then:
mailto:[email protected]
'NoneType' object has no attribute 'endswith'
Could it be because there are . before the @ and it confuses the downloader?
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 6
- 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.