[soundcloud] Improved playlist iteration (#924)
authorAaron Loo <domanchi@users.noreply.github.com>
Thu, 23 Nov 2023 15:38:36 +0000 (07:38 -0800)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2023 15:38:36 +0000 (16:38 +0100)
commit010bccd86bcf8267ca2778ce532197c07aa643fb
tree655affca851ab39573fefe20cb9db1253a5f8b21
parent3bb1c15b25b4e8ce22994828ea2c5fe98d5a5ef4
[soundcloud] Improved playlist iteration (#924)

* [soundcloud] improved playlist imports

Similar to https://github.com/music-assistant/server/pull/922, the
playlist import process is incomplete. Through trial and error, I
discovered that soundcloud returns all forms of "track lists" as a
response to the API call -- and that it was sorted by recency (which
explained the behavior I witnessed on `2023.6.0b6`.

This PR fixes it right up. It generalizes soundcloud pagination for
easier future adoption and for the soundcloud playlists.

Manually tested the `asyncsoundcloudpy` API.

* added self to manifest codeowners
music_assistant/server/providers/soundcloud/__init__.py
music_assistant/server/providers/soundcloud/manifest.json
music_assistant/server/providers/soundcloud/soundcloudpy/asyncsoundcloudpy.py