beets icon indicating copy to clipboard operation
beets copied to clipboard

[fetchart] Add retry with exponential backoff

Open richardmitic opened this issue 2 years ago • 5 comments

Description

The iTunes source returns 403 as a basic form of rate limiting. To get around this, we add a retry with exponential backoff to all requests made by _logged_get(). We also include some other generic error codes to retry.

Fixes #3827, which was closed with no fix. Without this change, two different runs of beet fetchart -f will download different sets of album art because the iTunes has art available but will fail some requests with 403.

To Do

  • [ ] Documentation. (If you've add a new command-line flag, for example, find the appropriate page under docs/ to describe it.)
  • [x] Changelog. (Add an entry to docs/changelog.rst near the top of the document.)
  • [ ] Tests. (Encouraged but not strictly required.)

richardmitic avatar Jan 18 '23 12:01 richardmitic

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 20 '23 14:05 stale[bot]

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 15 '23 16:10 stale[bot]

@ybnd Rebased on master and removed the contentious method_whitelist/allowed_methods keyword. What do you think?

richardmitic avatar Oct 17 '23 09:10 richardmitic

@richardmitic looks good! I'll merge as soon as I get the chance to run this "live" again to confirm.

ybnd avatar Oct 18 '23 08:10 ybnd

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 17 '24 13:03 stale[bot]