perkeep / gphotos-cdp

This program uses the Chrome DevTools Protocol to drive a Chrome session that downloads your photos stored in Google Photos.
Apache License 2.0
651 stars 36 forks source link

Better slow connection support #34

Closed HuwSy closed 1 year ago

HuwSy commented 3 years ago

Issue Slow internet speeds and slow page loads prevent navigating to end correctly without resulting in many many navRight steps. Additionally impacts navLeft when this doesn’t load in a timely manner (or possibly portrait photos TBC)

Background The page down/end detection done off screen shots when the unpopulated gray tiles match again and again doesn’t recognise its not reached the end.

Implementation By waiting slightly longer between pagination it at least loads the gray boxes to correct proportions and identifies the page has not reached end. Also adding a nudge the window.resize() before attempting click left better tolerate slow page loads with large images or videos on slow connections.

Fix for issue #33 and possibly #19

googlebot commented 3 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

HuwSy commented 3 years ago

@googlebot I signed it!

googlebot commented 3 years ago

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.