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

Fix 'play' command requiring 'offset' field #1418

Merged
merged 2 commits into from
Dec 14, 2024
Merged

Conversation

FabioGNR
Copy link
Contributor

Fixes #1417.

Copy link
Member

@photovoltex photovoltex left a comment

Choose a reason for hiding this comment

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

Thanks for the find!

warn!("SkipTo didn't provided any point to skip to, falling back to index 0");
0
}))
impl From<Option<SkipTo>> for PlayingTrack {
Copy link
Member

@photovoltex photovoltex Dec 14, 2024

Choose a reason for hiding this comment

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

Can you instead of adjusting the From, derive Default for SkipTo and unwrap_or_default? Pretty much so that we don't have to touch the From at all^^

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, that's nicer.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, you can easily run into deep indentation issues with rust. There are ways around it, but usually they are not the obvious one. Anyhow thanks for the adjustment^^

@roderickvd
Copy link
Member

Perfect, thanks!

@roderickvd roderickvd merged commit 00679fc into librespot-org:dev Dec 14, 2024
13 checks passed
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.

Connect: failed to handle request: unknown endpoint "play"
3 participants