GithubHelp home page GithubHelp logo

Comments (23)

C0D3D3V avatar C0D3D3V commented on September 4, 2024

Thats a link that is parsed from a description. As requested in #44.
It only tries to download files. I can change it so it fallback to the html webpage, if no file could be downloaded.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

I still have to fix something. I'll let you know as soon as I have tested it successfully.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

You can test it with the latest code, in a testing enviroment (don't destroy your working enviroment :D). As this is a development branch... some files may be downloaded again, because I changed the names of the modules again.

from moodle-dl.

nkfs avatar nkfs commented on September 4, 2024

I just tested it, and it downloaded a bunch of .desktop files which are just links to more php files, but none of the content is being downloaded still. It managed to grab a single php file out of the hundreds there should be.

from moodle-dl.

nkfs avatar nkfs commented on September 4, 2024

actually looking closer, even the .md file it's downloading is only the first couple lines on the page right before the next bolded section / heading. Maybe that's why it's not parsing the "next" link on the lessons.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

Is your moodle public?

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

the rest of the php files are moodle links?

from moodle-dl.

nkfs avatar nkfs commented on September 4, 2024

no, it's not a public moodle. and yes, each php file is just the "next" page of the lesson. I've logged responses, is there a way to get more debug output?

from moodle-dl.

nkfs avatar nkfs commented on September 4, 2024

Looking through the "responses.log", it appears all the md files are actually just the descriptions of each week / lesson. So maybe I'm not actually downloading any content at all. I've gone through these lessons already, does it matter to the app whether it's been viewed before? I can still see the content using the mobile app to verify the api

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

yes the markdown files are the descriptions of every file and section (as you in the --config explained)

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

"next" pages should not downloaded at all... I never saw a plugin that sets next pages in the description xD thats so stupid

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

It does not matter that you viewed a file ... The downloader has its own database.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

You need to give me more information what is happening. Is there anything missing? Or are there to much files? I can add an option, to make it optional to parse links from description. Normaly only files from the api are downloaded

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

you can also contact me by mail or telegram...

from moodle-dl.

nkfs avatar nkfs commented on September 4, 2024

maybe I am misunderstanding the tool. I was hoping it would download the entire course, all the readings, assignments, and links. It downloaded all the pdf attachments correctly, and submissions / responses. But none of the content. What's your telegram? We can take this offline.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

what content?
telegram username: c0d3d3v

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

It is fully capable of downloading files of any type (The module name in moodle for that is resource). The downloader structures the files the way it is structured on the course page. It uses the moodle app API in first place, but in the issue-41 branche it is now also capable of using a browser cookie, to download also not suported modules.

More supported modules:

  • folder are directroies on the course page. They are fully downloaded and correctly structured.
  • url are links to different websites or moodle itself. If the website contains a file or a video it tries to download it.
  • index_mod is a mod I made up, it combines all modules that points to a index.html page, and that shoud be downloaded or contains a file/video. Currently thats the page and moodecvideo module. (and some special links parsed from descriptions)
  • cookie_mod is the second mod I made up. It combines all moduls that needs a browser cookie to work. Currently that is only the kalvidres module (videos from Kalvidre) and special links parsed from descriptions.
  • data is the module for databases . That are big modules in that teacher and sudents can upload files with lot of meta datas.
  • assign contains a assignment, files for the assignment, submissions of the teacher or student, grades, and more descriptions.

It will download all descriptions in markdown format of files, sections and where ever a description is written. Most of the times these descriptions are annoying. But you can delete all local files as you want, they wont be redownloaded, so you can keep the interesting descriptions (markdown files have the extension .md).

Descriptions are now parsed for links, and these are traded as url mod if it is not clear that it is one of the other mod.

If you miss any importend file, you need to give me more information, specialy the responses.log would be good (but only over telegram), it can contain private information.

You can decide to not to download some of the modules, you only need to go through the additional configuration, with --config.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

It seems that you can download lessons only if you start an attempt. I don't know what kind of effects this can have. That's also the reason why I don't download quizzes, because I don't want to start the attempt . If an attempt is limited in time it could cause problems for the student. But I will test how it looks like with completed lessons.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

I would be happy if someone implements it and makes a Pull Request. Due to my studies I will not be able to implement this in the near future.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

I created a wiki entry with all the API methods we need to download lessons.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

I have implemented the first half to download lessons. The second half would be to also download the reports, that is, the ratings that can be viewed at /mod/lesson/report.php. Would you like the reports to be downloaded as well?

You can test the function now and give me feedback.

I'm going to have a look at the workshop mod, because of which you actually opened the issue.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

I created a wiki entry with all the API methods we need to download workshops.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on September 4, 2024

If you want that reports of lessons get also downloaded, then please open a new issue

from moodle-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.