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

Remove core.playback.play()'s tl_track argument #2150

Merged
merged 1 commit into from Feb 25, 2024

Conversation

jodal
Copy link
Member

@jodal jodal commented Feb 22, 2024

This argument has been deprecated since Mopidy 3.0, released more than four years ago.

I don't know how much this argument is used by frontends/clients. However, the migration path is straight forward as any caller can replace:

core.playback.play(tl_track)

With:

core.playback.play(tl_track.tlid)

Or, to keep compatibility with Mopidy < 4.0:

core.playback.play(tlid=tl_track.tlid)

The recently added type hints should also be of help when migrating frontends/clients.

Part of #1855

@jodal jodal force-pushed the remove-play-tl-track branch 4 times, most recently from 8030395 to 35a3a08 Compare February 22, 2024 17:59
src/mopidy/core/playback.py Outdated Show resolved Hide resolved
src/mopidy/core/playback.py Show resolved Hide resolved
src/mopidy/core/playback.py Show resolved Hide resolved
@kingosticks kingosticks merged commit e075fb2 into mopidy:develop Feb 25, 2024
7 of 8 checks passed
@jodal jodal deleted the remove-play-tl-track branch February 25, 2024 23:54
@jodal jodal added this to the v4.0.0 milestone Mar 1, 2024
@kingosticks kingosticks added the A-core Area: Core layer label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants