Skip to content

[BUG] Crash on adding a station #303

@AlekseyCanvas

Description

@AlekseyCanvas

System:

OS: Ubuntu
Python version: 3.10
pipx installation method: Fully isolated
PyRadio Version: 0.9.3.11.18
Player used: vlc
Additional context:
Hi. I want to add new station to playlist, but pyradio closing and i see this text:

Traceback (most recent call last):
  File "/home/orangepi/.local/bin/pyradio", line 7, in <module>
    sys.exit(shell())
  File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/main.py", line 1184, in shell
    curses.wrapper(pyradio.setup)
  File "/usr/lib/python3.10/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/radio.py", line 1341, in setup
    self.run()
  File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/radio.py", line 2260, in run
    ret = self.keypress(c)  # Handle shortcut
  File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/radio.py", line 9904, in keypress
    self._station_editor.item = ['', '', '', '', '', '0@128', '', '', '']
  File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/edit.py", line 427, in item
    self._set_item(item)
  File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/edit.py", line 483, in _set_item
    self._player = self._orig_player = item[Station.player]
IndexError: list index out of range
^CException ignored in: <module 'threading' from '/usr/lib/python3.10/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1567, in _shutdown
    lock.acquire()
KeyboardInterrupt:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions