Skip to content

support for lyrics is broken since 4.15.8 #1433

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

Closed
sibbi77 opened this issue Jun 21, 2024 · 0 comments · Fixed by #1434
Closed

support for lyrics is broken since 4.15.8 #1433

sibbi77 opened this issue Jun 21, 2024 · 0 comments · Fixed by #1434
Labels

Comments

@sibbi77
Copy link

sibbi77 commented Jun 21, 2024

Describe the Bug

Retrieving plexapi.media.LyricStream does no longer work.

Code Snippets

def get_plex_lyrics(album: plexapi.audio.Album):
    tracks: list[plexapi.audio.Track] = album.tracks()
    for track in tracks:
        track.reload()
        media: list[plexapi.media.Media] = track.media
        for m in media:
            parts: list[plexapi.media.MediaPart] = m.parts
            for p in parts:
                streams = p.streams
                for stream in streams:
                    if isinstance(stream, plexapi.media.LyricStream):
                        data = plex_query(stream.key)
                        print(data)

Expected Behavior

plexapi==4.15.7: the above code prints the lyrics
plexapi>=4.15.8: len(streams) == 1 and no lyrics are present

Additional Context

No response

Operating System and Version

Ubuntu 24.04

Plex Media Server Version

1.40.4.8598

Python Version

3.12.3

PlexAPI Version

4.15.13

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

Successfully merging a pull request may close this issue.

2 participants