TThomasV / CU-Panopto-Downloader

Downloads lecture videos from the panopto platform
4 stars 5 forks source link

Videos with an additional professor face cam view won't download correctly #2

Open Trenza1ore opened 3 years ago

Trenza1ore commented 3 years ago

A 174 byte mp4 file will be downloaded instead. An example is attached below.

https://user-images.githubusercontent.com/25863274/119910798-81435e00-bf8a-11eb-9a52-2dd12cfc26a5.mp4

Trenza1ore commented 3 years ago

Fixed it.

Just add this before the line self.logger.debug("%d videos found", len(results))

fix the m3u8 playlist issue

    for i in results:
        this_link = results[i]
        if this_link[-4:].lower() == "m3u8":
            results[i] = this_link[:-15] + "mp4"

I have added it to my fork. But my codes are not so efficient (I just needed the tool for myself so didn't think twice before writing any line, just added features that I need like choosing which folders to download or seeing what's inside a folder) so I didn't open a pull request.