Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download videos/files from particular websites like Zoom automatically #55

Closed
HumHongeKamyaab opened this issue Oct 19, 2020 · 13 comments
Closed

Comments

@HumHongeKamyaab
Copy link

HumHongeKamyaab commented Oct 19, 2020

Some professors post video links of zoom, universityspecificyoutube etc on moodle. Often these links require authorization, which can be handled by --cookies option in youtube-dl or --load-cookies option in wget.
Is there a way to automatically force download these links posted on moodle.
User can specify pattern of the links and software to use for them, something like,
dropbox -> wget
youtube -> youtube-dl
zoom -> wget
universityspecificyoutube -> youtube-dl
PS: the cookies can be set using https://github.com/dandv/convert-chrome-cookies-to-netscape-format

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 19, 2020

Currently there are two solutions to the problem. If download_also_with_cookie is enabled in the configuration, then a file called Cookies.txt is created in the download folder. You can add your cookies there or you can create this file yourself.

@HumHongeKamyaab
Copy link
Author

HumHongeKamyaab commented Oct 19, 2020

Issue is not about cookies, that can be managed externally in youtube-dl and wget config files in home folder.
The main thing is

Is there a way to automatically force download specific website links posted on moodle.
User can specify pattern of the links and software to use for them, something like,
dropbox -> wget
youtube -> youtube-dl
zoom -> wget
universityspecificyoutube -> youtube-dl

right now I am getting file like this in the course folder

[Desktop Entry]
Encoding=UTF-8
Name=link to  foounivtube
Type=Link
URL=https://tube.foouniv.com/videos/e23dfoo
Icon=text-html
Name[en_US]=link to foounivtube

I want to directly download https://tube.foouniv.com/videos/e23dfoo using youtube-dl

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 19, 2020

currently every link is just tried to be downloaded with youtube-dl and if youtube-dl can't find any videos, it downloads it manuly (just like wget, it is called urllib2).

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 19, 2020

Have you set download_linked_files to true?

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 19, 2020

Can you send me the log, from downloading this file? So delete the desktop file and remove it from the database with moodle-dl -md
Then redownload it with moodle-dl -v and send me the new log.

@HumHongeKamyaab
Copy link
Author

HumHongeKamyaab commented Oct 19, 2020

Have you set download_linked_files to true?

yes, I am using master branch of moodle-dl

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 19, 2020

did you test the link with youtube-dl? Can youtube-dl even download the link?

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 19, 2020

I will look up if the config file of youtube-dl is even used if I call it in my script... I think you have to use the secend option I told you above.

@HumHongeKamyaab
Copy link
Author

did you test the link with youtube-dl? Can youtube-dl even download the link?

You are right, youtube-dl can't download this link for me. I need to check my cookies config.

But still I have issues in automatically downloading videos links of zoom. Actually youtube-dl is not supporting zoom links itelf. Its not a issue of moodle-dl

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 19, 2020

youtube-dl will ignore your system/home configuration file, because it is not run externaly but it is integrated in the moodle-dl.

You have to send me some test links. I will see what we can do. I can write an extractor for youtube-dl so that the links get downloaded too. But I never saw a Zoom Link with a download option... so send me one. Via mail if you want, or telegram: c0d3d3v is my username

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 20, 2020

Look at this wiki entry, how to use cookies for downloading. https://github.com/C0D3D3V/Moodle-Downloader-2/wiki/Use-cookies-when-downloading

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 20, 2020

So what other wishes do you have? I don't quite understand your question and without the information I asked for I can't do anything else.

@C0D3D3V
Copy link
Owner

C0D3D3V commented Oct 20, 2020

I will add the zoom extractor to moodle_dl. It will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants