Commit a8bd1a7
Asher Awelan
Update photos.py
fix: add pagination support for album folder listing
Some iCloud accounts have more albums than are returned in a single response.
Previously, the `_fetch_folders` method only fetched the first page of albums,
ignoring any `continuationMarker` provided by the Apple Photos API.
This patch adds support for pagination, looping through all available pages
and aggregating the results. This resolves issues where certain albums
(e.g. "Harry Potter") were visible in the iCloud Web UI but missing from
tools like `icloudpd --list-albums`.
Tested manually by confirming previously missing albums now appear.1 parent 5fac423 commit a8bd1a7
1 file changed
+29
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 228 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
241 | 257 | | |
242 | | - | |
| 258 | + | |
243 | 259 | | |
244 | 260 | | |
245 | 261 | | |
| |||
0 commit comments