diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-19 14:13:59 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-19 14:13:59 -0400 |
| commit | 6b6488be27a71d9dba0ae5959284ae9a18ae9230 (patch) | |
| tree | d3e9f97f23743ae0ace21f308bf41d303fdf2920 /src/client/apis/google_docs/GooglePhotosClientUtils.ts | |
| parent | 5c49467e4513e260647a74f84042662d78ccdbc7 (diff) | |
extensions fixes and tracking albums
Diffstat (limited to 'src/client/apis/google_docs/GooglePhotosClientUtils.ts')
| -rw-r--r-- | src/client/apis/google_docs/GooglePhotosClientUtils.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/apis/google_docs/GooglePhotosClientUtils.ts b/src/client/apis/google_docs/GooglePhotosClientUtils.ts index a13d9dcd6..671d05421 100644 --- a/src/client/apis/google_docs/GooglePhotosClientUtils.ts +++ b/src/client/apis/google_docs/GooglePhotosClientUtils.ts @@ -89,7 +89,7 @@ export namespace GooglePhotos { return undefined; } const resolved = title ? title : (StrCast(collection.title) || `Dash Collection (${collection[Id]}`); - const { id } = await Create.Album(resolved); + const { id, productUrl } = await Create.Album(resolved); const newMediaItemResults = await Transactions.UploadImages(images, { id }, descriptionKey); if (newMediaItemResults) { const mediaItems = newMediaItemResults.map(item => item.mediaItem); @@ -101,9 +101,11 @@ export namespace GooglePhotos { const image = Doc.GetProto(images[i]); const mediaItem = mediaItems[i]; image.googlePhotosId = mediaItem.id; + image.googlePhotosAlbumUrl = productUrl; image.googlePhotosUrl = mediaItem.productUrl || mediaItem.baseUrl; idMapping[mediaItem.id] = image; } + collection.googlePhotosAlbumUrl = productUrl; collection.googlePhotosIdMapping = idMapping; if (tag) { await Query.TagChildImages(collection); |
