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

Add instant mix functionality to album screen #642

Merged
merged 3 commits into from
Jun 11, 2022

Conversation

1hitsong
Copy link
Member

@1hitsong 1hitsong commented Jun 8, 2022

Changes
Add Instant Mix button to album page. Clicking button will generate an instant mix based on the album and begin playing it for the user.

Issues
None. New functionality

url = Substitute("/Items/{0}/InstantMix", id)
resp = APIRequest(url, {
"UserId": get_setting("active_user"),
"Limit": 201
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 201? It takes a really long time for my server in the cloud to compile this instant mix. Maybe my network paths are congested tonight.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The web client gathers a max of 200 songs for an Instant Mix. The methodology I use to get the proper ID will cause the 1st song on the album to always be the first song in the mix. I resolve this by requesting 201 and skipping the first song.

Copy link
Contributor

@candry7731 candry7731 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great on the demo server. the 201 song instant mix might be excessive. Maybe we can add a option in the settings section on how many songs you want to add to your instant mix. maybe add a pin pad and set_user_setting()

@jimdogx jimdogx merged commit 26b856c into jellyfin:master Jun 11, 2022
@1hitsong 1hitsong deleted the music-instant-mix branch June 11, 2022 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants