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

Expose "raw":"1" from the API in MediaList #586

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

autopulated
Copy link
Contributor

Expose the raw flag on the media list (keeping it as a string value, and omitting it if the API response does not include it). This means you can list files and download the .gpr raws without needing to do a separate metadata request for each file.

Not sure if this is exactly the right way to do it, but by the time I'd modified my local version to add this thought I might as well see if it was useful upstream.

If this is a welcome addition I can update the changelog and docs if that's needed as well?

@tcamise-gpsw
Copy link
Collaborator

@autopulated This looks like it is fine but I need to do some testing to see why i wasn't receiving the raw field in my responses. Maybe I just missed it.

Did you make a bug ticket for this? I couldn't find one.

@autopulated
Copy link
Contributor Author

No bug ticket sorry - the data in the added test is a section of a real http response from a gopro hero 12 black from opening the http endpoint in the browser. I don't think I had the labs firmware on it at that point, so it would have been up to date with the latest manual firmware update.

@tcamise-gpsw tcamise-gpsw merged commit 736235c into gopro:main Sep 10, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants