fix(google_photo): add support for streaming video, range requests (#5905)

* Update util.go

Return mediaMetadata

* Update driver.go

Using width and height
This commit is contained in:
None
2024-01-19 13:02:05 +08:00
committed by GitHub
parent 0f29a811bf
commit 8bccb69e8d
2 changed files with 28 additions and 4 deletions

View File

@ -151,7 +151,7 @@ func (d *GooglePhoto) getMedia(id string) (MediaItem, error) {
var resp MediaItem
query := map[string]string{
"fields": "baseUrl,mimeType",
"fields": "mediaMetadata,baseUrl,mimeType",
}
_, err := d.request(fmt.Sprintf("https://photoslibrary.googleapis.com/v1/mediaItems/%s", id), http.MethodGet, func(req *resty.Request) {
req.SetQueryParams(query)