Skip to content

[BUG] VLC crashes PyRadio after the radio station starts playing ver. 0.9.3.11.20 #312

@AlekseyCanvas

Description

@AlekseyCanvas

System:

OS: Ubuntu
Python version: 3.10
pipx installation method: Fully isolated
PyRadio Version: 0.9.3.11.20
Player used: vlc
Additional context
Hi. I installed PyRadio, added a radio station, and tried to listen, but PyRadio crashes and i see this text:

Traceback (most recent call last):ion...
File "/home/orangepi/.local/bin/pyradio", line 7, in
sys.exit(shell())
File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/main.py", line 1205, 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 1343, in setup
self.run()
File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/radio.py", line 2265, in run
ret = self.keypress(c) # Handle shortcut
File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/radio.py", line 10128, in keypress
self._start_player()
File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/radio.py", line 10571, in _start_player
self.playSelection()
File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/radio.py", line 2640, in playSelection
self.player.play(
File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/player.py", line 2241, in play
self.get_volume()
File "/home/orangepi/.local/pipx/venvs/pyradio/lib/python3.10/site-packages/pyradio/player.py", line 3926, in get_volume
self.volume = int(100 * self.actual_volume / self.max_volume)
TypeError: unsupported operand type(s) for /: 'str' and 'int'

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