soraxas / echo360

Commandline tool for automated downloads of echo360 videos hosted by university
https://cs.tinyiu.com/echo360
MIT License
261 stars 51 forks source link

Fail to download echo360.org/media/$(UUID)/public. #43

Open TaisZ opened 3 years ago

TaisZ commented 3 years ago

I tried to download a video whose URL looks like this:https://echo360.org.uk/media/$(UUID)/public. The script opened chrome and received the credentials correctly. Then the script redirects the link to https://echo360.org.uk/section/$(UUID)/home, which implies a 404 page. I am wondering whether the problem can be solved by redirecting the script to the correct URL, or if the player of ”echo360.org.uk/media/$(UUID)/public“ uses a different decoding method. Thanks!

soraxas commented 3 years ago

If you manually go to the https://echo360.org.uk/section/$(UUID)/home URL (your own chrome/firefox) does it also show 404?

And on top of it, if you type https://echo360.org.uk/media/$(UUID)/public in the script opened chrome would it display the same interface as a list of videos

vinn commented 3 years ago

I only have access to video links like https://echo360.org/media/0d046a3e-26e1-4dc1-ba3a-63af2d2734fb/public . There is no "course home page" . The instructor only provided a page of links similar to the one above. Can this video be downloaded?

soraxas commented 3 years ago

It's likely that the same download procedure should work on those pages, but I don't have any experience nor access to such a page. The current program relies on course home page to retrieve a list of videos, and as such, this program would not work on those links as of yet. Feel free to modify the code and extend to these sort of links though.

Peedee2002 commented 2 years ago

I dont know how much you are willing to look into this issue, but it would be really cool if this feature is added. There is no other way to install the files from these links.

soraxas commented 2 years ago

PRs are welcome but it is not possible for me to implements this without any access to such a page

Peedee2002 commented 2 years ago

thanks @soraxas for your quick response. I am a little confused about do you mean by access though. I can currently click the URL given by vinn and I can watch it. Here is another: https://echo360.net.au/media/9a37184c-03ec-4e8f-9aeb-4883e5d5ff94/public I might consider making a PR for this, but would you mind explaining what type of changes ill need to be making?

soraxas commented 2 years ago

I am a little confused about do you mean by access though.

I cannot implement this as I don't have access to such a page to test/debug/etc.

EDIT: I can see that the given link is actually public. It is not currently on my priority to look into this as I have no use of this, but I can have a look at it when I am free.

... would you mind explaining what type of changes ill need to be making?

I am not sure as I don't know how that page source looks like (me knowing the URL doesn't provide much clarity). But I would guess it involves extracting the underlying stream links and passing it to the echo360 video constructor at https://github.com/soraxas/echo360/blob/master/echo360/videos.py for downloads (or skipping that and directly passing the streams to hls downloader at https://github.com/soraxas/echo360/blob/master/echo360/hls_downloader.py)