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

call yami.GetMediaInfo() got types error #3

Open
zixizhan opened this issue Jul 20, 2020 · 4 comments
Open

call yami.GetMediaInfo() got types error #3

zixizhan opened this issue Jul 20, 2020 · 4 comments

Comments

@zixizhan
Copy link

I got an error when call yami.GetMediaInfo(): strconv.ParseFloat: parsing "UTC 2020-05-08 08:00:26": invalid syntax.
followed the source code, I found in yami/types.go, "DurationStart" and "DurationEnd" are declared in wrong type, they are string instead of float64

@cajax
Copy link
Owner

cajax commented Jul 21, 2020

Hi @zixizhan.
Originally type mapping is generated based on official schema. So either it was changed since then either your particular binary outputs data in different format.

I will check with latest version of MediaInfo.
What is the version of your MediaInfo?

@zixizhan
Copy link
Author

64bit v20.03 for windows, It's the latest version on the official website so far

@cajax
Copy link
Owner

cajax commented Jul 21, 2020

It looks like the problem was caused by localization in MediaInfo.
I pushed a fix that forces raw types. Can you update the lib and test it again @zixizhan ?

@zixizhan
Copy link
Author

I tested it, but it didn't work, the same error showed:(

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

2 participants