You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using yTermPlayer on macOS Mojave, Python 3.7.3. I've got this crash when the app was about to play the second item on a list
Traceback (most recent call last):
File "/usr/local/bin/yterm", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/yTermPlayer/__main__.py", line 28, in main
loop.run()
File "/usr/local/lib/python3.7/site-packages/urwid/main_loop.py", line 286, in run
self._run()
File "/usr/local/lib/python3.7/site-packages/urwid/main_loop.py", line 384, in _run
self.event_loop.run()
File "/usr/local/lib/python3.7/site-packages/urwid/main_loop.py", line 788, in run
self._loop()
File "/usr/local/lib/python3.7/site-packages/urwid/main_loop.py", line 821, in _loop
alarm_callback()
File "/usr/local/lib/python3.7/site-packages/urwid/main_loop.py", line 172, in cb
callback(self, user_data)
File "/usr/local/lib/python3.7/site-packages/yTermPlayer/ui.py", line 71, in update_name
temp = self.player_object.get_time_details()
File "/usr/local/lib/python3.7/site-packages/yTermPlayer/music_api.py", line 249, in get_time_details
total_seconds = round(self.player.duration)
TypeError: type NoneType doesn't define __round__ method
The text was updated successfully, but these errors were encountered:
Due to some reasons, youtube-dl is sometimes not able to fetch some youtubes.
This exception was handled in the latest commits, whenever fetching of a video fails, next video is automatically played. I just pushed these changes on pypi.
It should no more crash now.
Remember, you need to regularly update youtube-dl for the smooth working of this.
I'm using yTermPlayer on macOS Mojave, Python 3.7.3. I've got this crash when the app was about to play the second item on a list
The text was updated successfully, but these errors were encountered: