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

rolling_tv_channel.py: KeyError 'Metadata' #220

Open
joecan00 opened this issue Jan 3, 2025 · 0 comments
Open

rolling_tv_channel.py: KeyError 'Metadata' #220

joecan00 opened this issue Jan 3, 2025 · 0 comments
Labels
1. Bug request Request for bug to be fixed

Comments

@joecan00
Copy link

joecan00 commented Jan 3, 2025

In which file is the bug?

  • rollinng_tv_channel.py

Describe the setup (arguments and their values, how it was run, etc.):

  • In Tautulli running in a docker on Unraid. Testing using on play trigger.

Describe what the bug is:

Traceback (most recent call last):
    File "/config/scripts/rolling_tv_channel.py", line 133, in <module>
        response = rolling_tv_channel(ssn=ssn, playlist_name=args.PlaylistName)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/config/scripts/rolling_tv_channel.py", line 75, in rolling_tv_channel
        playlist_output = ssn.get(f'{base_url}/playlists/{playlist_ratingkey}/items').json()['MediaContainer']['Metadata']
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'Metadata'

Describe what should be happening:
Playlist has been created but remains empty and get the above error.

@joecan00 joecan00 added the 1. Bug request Request for bug to be fixed label Jan 3, 2025
@Casvt Casvt changed the title Issue with Rolling Tv Channel Script rolling_tv_channel.py: KeyError 'Metadata' Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Bug request Request for bug to be fixed
Projects
None yet
Development

No branches or pull requests

1 participant