Skip to content

fix(autoplay): prioritize user tracks, Spotify liked seeds, sertanejo filter, expand Last.fm limits - #817

Merged
LucasSantana-Dev merged 22 commits into
release/v2.10.0from
fix/autoplay-queue-priority-spotify-seeds
May 8, 2026
Merged

LucasSantana-Dev merged 22 commits into
release/v2.10.0from
fix/autoplay-queue-priority-spotify-seeds

fix(spotify): drain response body on non-OK to release connection

5f54cc6
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 8, 2026 in 1m 25s

Annotations

Check failure on line 82 in packages/bot/src/utils/music/candidateFallback.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ABSUNx9JU6ccakrrU&open=AZ4ABSUNx9JU6ccakrrU&pullRequest=817

Check warning on line 2 in packages/bot/src/spotify/spotifyApi.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'warnLog'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4IspRiAFXVgHJSbT5x&open=AZ4IspRiAFXVgHJSbT5x&pullRequest=817

Check warning on line 7 in packages/bot/src/utils/music/autoplay/artistTagCache.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`normalized` should be a `Set`, and use `normalized.has()` to check existence or non-existence.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ3_0qSSOyc73zbL9t-W&open=AZ3_0qSSOyc73zbL9t-W&pullRequest=817

Check warning on line 106 in packages/bot/src/utils/music/autoplay/diversitySelector.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer negative index over length minus index for `slice`.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcL&open=AZ4ArE2HkQrnzCBi3kcL&pullRequest=817

Check warning on line 103 in packages/bot/src/utils/music/autoplay/diversitySelector.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.at(…)` over `[….length - index]`.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcK&open=AZ4ArE2HkQrnzCBi3kcK&pullRequest=817

Check warning on line 103 in packages/bot/src/utils/music/autoplay/diversitySelector.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the 'String#endsWith' method instead.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcJ&open=AZ4ArE2HkQrnzCBi3kcJ&pullRequest=817

Check failure on line 468 in packages/bot/src/spotify/spotifyApi.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4AKWl7C5to97iszaKm&open=AZ4AKWl7C5to97iszaKm&pullRequest=817

Check failure on line 97 in packages/bot/src/utils/music/autoplay/diversitySelector.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcI&open=AZ4ArE2HkQrnzCBi3kcI&pullRequest=817