tonycpsu / streamglob

A console media browser designed to facilitate live and time-shifted viewing of online content.
GNU General Public License v3.0
34 stars 10 forks source link

AttributeError: 'SimpleProviderView' object has no attribute 'preview_all' #50

Open garytee opened 3 years ago

garytee commented 3 years ago

This works fine:

streamglob mlb/2021-04-26.nyy

When I run streamglob it randomly crashes and gives me this error

File "~/.pyenv/versions/3.9.2/bin/streamglob", line 33, in <module> sys.exit(load_entry_point('streamglob==0.0.11.dev0', 'console_scripts', 'streamglob')()) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamglob/__main__.py", line 557, in main rc = run_gui(action, provider, **opts) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamglob/__main__.py", line 442, in run_gui state.loop.run() File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/main_loop.py", line 287, in run self._run() File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/main_loop.py", line 385, in _run self.event_loop.run() File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/main_loop.py", line 1494, in run reraise(*exc_info) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/compat.py", line 58, in reraise raise value File "~/.pyenv/versions/3.9.2/lib/python3.9/asyncio/tasks.py", line 256, in __step result = coro.send(None) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamglob/tasks.py", line 143, in wait_for_player_exit await state.listings_view.provider.view.preview_all() AttributeError: 'SimpleProviderView' object has no attribute 'preview_all'

I tried some of the other branches, but I either get the same thing or an error about the "away_team" attribute when I try to select a game. Just wanted to see if this was something someone was familiar with before I get too deep into debugging.

tonycpsu commented 3 years ago

Yeah, there's a lot of active development of the Urwid TUI interface going on in the main branch right now, and I see that away_team bug in the stable branch as well. I'll try to get MLB working in main soon.