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

Configurable connection settings for remote MediaInfo.parse #139

Closed
cmahnke opened this issue Oct 2, 2024 · 3 comments
Closed

Configurable connection settings for remote MediaInfo.parse #139

cmahnke opened this issue Oct 2, 2024 · 3 comments

Comments

@cmahnke
Copy link

cmahnke commented Oct 2, 2024

Currently it's not possible to set connection settings (like timeout) using MediaInfo.parse(url, **mediainfo_opts). If this is already possible, it's hard to find the documentation (might be replicated here https://github.com/sbraz/pymediainfo/blob/master/pymediainfo/__init__.py#L370).

The documentation of MediaInfo doesn't seem to provide this either.

@sbraz
Copy link
Owner

sbraz commented Oct 4, 2024

@JeromeMartinez I checked https://github.com/MediaArea/MediaInfoLib/blob/master/Source/MediaInfo/Reader/Reader_libcurl.cpp and I don't see anything related to timeouts. I guess the library doesn't support this at the moment?

@cmahnke
Copy link
Author

cmahnke commented Oct 5, 2024

Yes, that's what i'ver figured out as well. I solved it by looping as long as no RuntimeException isn't raised anymore. This also does a retry if there is another error.

@sbraz sbraz closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2024
@JeromeMartinez
Copy link

I don't see anything related to timeouts.

Right. I don't expose all libcurl options. I may do it in the future (no ETA).

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

3 participants