sorachan / opencast-downloader

Downloader for lecture videos hosted on OpenCast
19 stars 7 forks source link

During the attempt to download any video arises KeyError: 'transport' #4

Open IliaOzhmegov opened 4 years ago

IliaOzhmegov commented 4 years ago

When I am trying to download any video I face:

Traceback (most recent call last):
  File "./oc_downloader.py", line 300, in <module>
    if mi['transport'] == 'HLS':
KeyError: 'transport'

Thanks in advance.

sorachan commented 4 years ago

Hi Elijah, I'm afraid that sounds like the OpenCast server you're trying to download videos from doesn't provide HLS streams which is the only streaming protocol currently supported by my downloader. However, I've just uploaded an updated version with improved error reporting capabilities, please send me the debug output so I can try and have a look at what's going wrong, maybe there's an easy fix. Things might take a while though, this semester is keeping me quite busy…

haeckle commented 3 years ago

Hi, I got the same error. At the instance I'm trying to access are several streaming options (direct, HLS, DASH), but the "direct" option doesnt' have an "transport" key. As I'm thinking the mimetype is always present I thought about checking that first and then act accordingly.