ricardorodrigues-ca / zoom-recording-downloader

Downloads and organizes all cloud recordings from your Zoom Business account
MIT License
124 stars 63 forks source link

Download fails on .mp4 files only; works M4A, VTT, and JSON files without issue. #50

Open boflaherty opened 5 months ago

boflaherty commented 5 months ago

The code will hit Exception block at Line 256 within download_recording function when attempting download of .mp4 file. All other files download successfully (MA4, TXT, JSON, etc.)

It returns "[Errno 2] No such file or directory: "

This code runs successfully on another machine, so not sure if it's a library/module issue. I have re-cloned the repo and started fresh several times.

boflaherty commented 5 months ago

Confirmed that the download URL is valid and it does download when accessed directly via browser (used the download_url variable from the requests function.

It looks like dl_dir = os.sep.join([DOWNLOAD_DIRECTORY, folder_name]) sanitized_download_dir = path_validate.sanitize_filepath(dl_dir) sanitized_filename = path_validate.sanitize_filename(filename) full_filename = os.sep.join([sanitized_download_dir, sanitized_filename])

all works fine. I think it's in the with open sections where the file is being streamed.

The folder I'm writing to is being managed by OneDrive, so I'll be checking to see if some sort of temporary file naming from that is causing issues.