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

[BUG] Status line - Python Exception - IndexError: list index out of range #224

Closed
nivit opened this issue Jan 11, 2024 · 2 comments
Closed
Labels

Comments

@nivit
Copy link

nivit commented Jan 11, 2024

Describe the bug

When I tune pyradio to this station

Radio Art - Solo piano,http://live.radioart.com:80/fSolo_piano.mp3?dlid=

I get this

Exception in thread Thread-2
(most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.9/site-packages/pyradio/player.py", line 1276, in updateMPVStatus
if self._get_mpv_metadata(n, stop, enable_crash_detection_function):
File "/usr/local/lib/python3.9/site-packages/pyradio/player.py", line 1667, in _get_mpv_metadata
artist = a_data.split(b'"artist":"')[1].split(b'"}')[0].split(b'","')[0]                                                                │
IndexError: list index out of range 

and the status line doesn't show "Title: Artist - Title" information as usual.

System:

  • OS: FreeBSD
  • Python version: 3.9
  • PyRadio Version: 0.9.2.22 (but also with 0.9.2.21) installed via FreeBSD ports
  • Player: mpv version 0.37.1
@s-n-g
Copy link
Collaborator

s-n-g commented Jan 11, 2024

On it!

@s-n-g s-n-g added the bug label Jan 11, 2024
@s-n-g
Copy link
Collaborator

s-n-g commented Jan 11, 2024

Fixed in 0.9.2.23
Thank you for reporting it!

@s-n-g s-n-g closed this as completed Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants