-
Notifications
You must be signed in to change notification settings - Fork 57
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
How to determine libmediainfo is installed? #34
Comments
Well we don't really need libmediainfo in order to parse the XML files it created… |
How about a Something like this:
|
That sounds reasonable, yeah. I'm not too experienced with staticmethod/classmethod, any reason why you chose the latter? |
I chose classmethod where the method needs information about the class. It's a matter of choice. The code would also work with 2 staticmethods. |
Currently, when libmediainfo is not installed, pymediainfo imports fine.
At parse time, an OSError is thrown when libmediainfo is not found.
Is there a portable (supported) way to determine pymediainfo is working as intended?
Depending on throwing an OSError that pymediainfo is not working is, in my opinion, not robust.
As a workaround, what I do now is:
But I doubt this is kosher and supported.
The text was updated successfully, but these errors were encountered: