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

transcript download? #77

Open ChocoTonic opened 9 months ago

ChocoTonic commented 9 months ago

is there a way to download transcripts with this?

soraxas commented 6 months ago

I haven't came across videos with transcripts before so I'm not sure.

jandye commented 5 months ago

I was literally just about to request this and notice this is already requested.

Transcripts are available in txt or vtt format, my preference is to download vtt so I can add it as subtitles when playing the video with VLC media player.

I can provide you with the download URL format, the txt format is similar except "format=txt" at the end.

https://echo360.net.au/api/ui/echoplayer/lessons/[Lesson ID]/medias/[Media ID]/transcript-file?format=vtt

Where "Lesson ID" matches the lesson url for viewing online with the echo player. https://echo360.net.au/lesson/[Lesson ID]/classroom

And "Media ID" matches the second id when directly downloading video/audio files. https://content.echo360.net.au/[Institution ID]/[Media ID]/1/hd1.mp4?[long_string_of_query_text]

Also when I tried to run this in debug just before downloading a file it matches the following line: DEBUG: https://content.echo360.net.au:443 "GET /[Institution ID]/[Media ID]/1/s0q1.m3u8 HTTP/1.1" 200 None

Not sure if this helps? I anonymised all the IDs but if there's an issue let me know and I can share some screenshots or something.

ChocoTonic commented 5 months ago

maybe you could open a pr to accomplish that?

soraxas commented 5 months ago

Thanks @jandye for the details. Yes, as @ChocoTonic had mentioned, please send a PR.

I would maintain this repo (when able to), but i would not actively work on any new features