Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soundcloud - Tracks limited to 30 and no way to sort by recently added #3456

Open
1 task done
DrDagless opened this issue Jan 15, 2025 · 7 comments
Open
1 task done
Assignees

Comments

@DrDagless
Copy link

What version of Music Assistant has the issue?

2.4.0b15

What version of the Home Assistant Integration have you got installed?

No response

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

Had posted this on discord and was recommended to raise an issue here.

This is specific to the Soundcloud provider. When browsing an artist's tracks with the Soundcloud provider, the max number of tracks that it will pull is 30. Also, the tracks seem to be in random order and there is no way to sort by date added. I've attached a picture which shows this.

In my case, I'm looking for recent uploads from NTS Radio. Searching in MA does seem to work mostly, as long as one uses the exact name of the track on Soundcloud. The Artist in question (NTS Latest) uploads 12+ tracks daily on Soundcloud, so it would be great to at least sort by date added (as it's shown on the Soundcloud website when on their page). Not sure if there are API limitations around this.

Screenshot 2025-01-14 093846

Screenshot 2025-01-15 133032

How to reproduce

Go to Browse in MA. Choose Soundcloud. Then go to any Artist, and the tracks displayed in MA will be limited to 30 and seemingly randomly in order.

Music Providers

Soundcloud

Player Providers

n/a

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2025.1.2

What type of installation are you running?

Home Assistant Supervised

On what type of hardware are you running?

Raspberry Pi

@OzGav
Copy link
Contributor

OzGav commented Jan 16, 2025

@robsonke

@robsonke
Copy link

Yep thanks, saw it and will have a look once my agenda allows me.

@robsonke
Copy link

I took a short look and this seems to be intended behaviour. It uses the provider feature called ARTIST_TOPTRACKS and returns in most cases only 10 items. For Soundcloud it uses the same as this one https://soundcloud.com/{yourartist}/popular-tracks and shows 30 items. Although the code says 25, I get 30 items in examples too.

I'll check with people on Discord for more info.

@robsonke
Copy link

About the sorting, the "album" sorting option seems to be in line with the order on Soundcloud (in top tracks tab). And by alphabet or name it's how you expect. Please correct me.

@robsonke
Copy link

I have an answer. We can implement the normal tracks list, however the list better doesn't exceed the 500 items according to Marcel. It's loaded into memory in the frontend, for example for sorting.
I'll change this behaviour but add a limit on 500, which is already a lot more than the 30 now.

@DrDagless
Copy link
Author

That would be excellent, thanks so much for looking into this!

And yep, when I sort by "album" it does rearrange the 30 tracks to mimic the Popular Tracks tab. Not sure if possible, but would be great to mimic the "Tracks" tab on soundcloud, where it looks like it sorts by recently added.

@robsonke
Copy link

That's the plan. I'll try to do this this week but a bit busy with work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants