Add custom API key support and retry logic for Last.fm import
- Add API key field to Last.fm settings UI with helpful info text - Store and load custom API key from settings - Use custom API key in lastfmimport if provided, fall back to default - Implement exponential backoff retry logic (up to 5 retries) - Retry on HTTP 500/503 errors with increasing delays (5s, 10s, 20s, 40s, 80s) - Add retry count tracking to request structures Co-authored-by: jonaski <10343810+jonaski@users.noreply.github.com>
This commit is contained in:
@@ -113,6 +113,7 @@ void LastFMScrobbler::ReloadSettings() {
|
||||
|
||||
s.beginGroup(kSettingsGroup);
|
||||
enabled_ = s.value(ScrobblerSettings::kEnabled, false).toBool();
|
||||
api_key_ = s.value(ScrobblerSettings::kApiKey).toString();
|
||||
s.endGroup();
|
||||
|
||||
s.beginGroup(ScrobblerSettings::kSettingsGroup);
|
||||
|
||||
Reference in New Issue
Block a user