Closed NullP0interEx closed 5 years ago
Interesting. Are you running the script in Cygwin or something similar under windows?
No. MacOS 10.15
I suspect that has something to do with the name of our courses. Anyway, he can not compile the regular expression or even look for it
normaly the script suports fully utf8 ... under windows the python suport for utf8 struggle under bad conditions, but for macOS it should work.
Does it only struggle at this one course "Ortung und Navigation für Telematik"? So if you put the course number 15066 in the config variable " dontcrawlcourses" it works?
No, I have the problem with several courses. Maybe it's the square brackets?
When restarting the script, by the way, it works without error. But it annoys because he always gets stuck.
ah yes the squere brackets is a good idea, that could it be. I will check it this evenig and fix it...
you can try if the last commit https://github.com/C0D3D3V/Moodle-Downloader/commit/4c22b2e652e5b6b1abf50dafd9b1893428794fd5 fixed the problem
mh I will refactor the code later, so that it dont use fnmatch, that should fix it. I think the implementation of this function differs in macos...
I made a new update https://github.com/C0D3D3V/Moodle-Downloader/commit/f9162ddb551fdd9368811af3799148d50a973bd6. Maybe it'll work now. If it doesn't work, I will remove the whole searchfordumpsSpecific function, which is unnecessary anyway. You could then simply remove line 438 " fileWasDeleted = searchfordumpsSpecific( file_name, fileName, filetype, pathtoSearch)"
Just delete completely, shouldn't make a big difference, because since some commits this is checked at two places. In the next weeks I will work on a new MoodleDownloader, which will be much more efficient, but until then this should help.
Great, it works! Thank you very much
Hi,
I always get the following error: