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

Support for Artist radio stations #870

Merged
merged 6 commits into from
Jan 24, 2022

Conversation

jjlawren
Copy link
Collaborator

@jjlawren jjlawren commented Jan 12, 2022

Description

This adds support for artist radio stations. In Plex Web, this is represented by the "Play Radio" button on an artist page.

An artist radio station can be retrieved using Artist.station(), which returns a Playlist if it exists. To differentiate these radio stations from classic playlists, a new radio boolean attribute is exposed.

PlayQueue creation has been updated to handle these special radio Playlist instances, which allows PlexClient.playMedia to accept them as-is.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the docstring for new or existing methods
  • I have added tests when applicable

plexapi/playlist.py Show resolved Hide resolved
plexapi/playqueue.py Show resolved Hide resolved
@JonnyWong16 JonnyWong16 merged commit 570742c into pkkid:master Jan 24, 2022
@jjlawren jjlawren deleted the artist_radio_playlists branch January 24, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants