Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
boflaherty opened this issue Apr 21, 2024 · 1 comment

Comments

@boflaherty
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant