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

A more robust way to retrieve course names (currently fallback to [[UNTITLED]]) #42

Open kcanares opened 3 years ago

kcanares commented 3 years ago

Downloads are successful but course names are always untitled. I am downloading lectures from UniMelb's echo360. Not really a big deal but it'd be nice if we have the option to name the course if it's too difficult to scrape the right course name

=================================================================
    Course: [[UNTITLED]]
=================================================================
    Successfully downloaded:
        2021-07-26 - Lecture 1 [Lecture 1 - Introduction]
        2021-07-27 - Lecture 2 [Lecture 2 - A flavor of Haskell]
=================================================================
soraxas commented 3 years ago

It used to works before but when the schema changes the previous method failed to extract the name (and fallback to UNTITLED). Would you be able to provide the debug log with the --debug flag where it contains information that you need for information extraction? Or a PR is welcome too if you don't want to post your information (and since you too are a developer:))

kcanares commented 3 years ago

Yeah sorry should've uploaded a debug log in my initial post. debug_log.txt

Thanks for this project btw - it's very useful!

soraxas commented 3 years ago

Hi @kcanares thanks for the log. From what I can see from the log file, the course home page did not response any course name at all (which is why the program wasn't able to extract any). It did reponsed with a field sectionId that looks like is a uuid of the course 944407f6-007f-4f18-ba66-187bbf396d12.

I'm guessing it is possible to retrieve the actual course name from the uuid with some request, but I do not have the means to work on it. If anyone have basic knowledge on coding and have the means to access such a page, it would be great to have a PR on it.