Commit dd337eb
authored
fix(reviews): return direct photo URL instead of imagery/report link (#260)
The review image extraction was navigating to el[2][2][0][1][21][7]
(and a fallback at [2][2][0][1][7]), which points at Google's
imagery/report endpoint — the 'report this photo' moderation link, not
the hosted image. As a result, user_reviews[].Images contained URLs
like:
www.google.com/local/imagery/report/?cb_client=maps_sv.tactile&image_key=...
that can't be rendered.
The actual image list is at el[2][2], where each image's direct
lh3.googleusercontent.com URL lives at [1][6][0]. This commit updates
parseReviews to walk that path, so Images now contains renderable URLs
such as:
https://lh3.googleusercontent.com/geougc-cs/AMG9lEQ...=w1200-h900-p
Fixes #240.1 parent 1af177d commit dd337eb
1 file changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
538 | 537 | | |
539 | 538 | | |
540 | 539 | | |
| |||
0 commit comments