user234683 / youtube-local

browser-based client for watching Youtube anonymously and with greater page performance
GNU Affero General Public License v3.0
501 stars 62 forks source link

[ERROR] 500 Uncaught exception #159

Closed mrpjl closed 1 year ago

mrpjl commented 1 year ago

Got below error on the screen while I opened a video

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/yt/youtube/watch.py", line 606, in get_watch_page
    util.check_gevent_exceptions(tasks[1])
  File "/yt/youtube/util.py", line 602, in check_gevent_exceptions
    raise task.exception
  File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
  File "/yt/youtube/watch.py", line 355, in extract_info
    info = yt_data_extract.extract_watch_info_from_html(watch_page)
  File "/yt/youtube/yt_data_extract/watch_extraction.py", line 770, in extract_watch_info_from_html
    return extract_watch_info(fake_polymer_json)
  File "/yt/youtube/yt_data_extract/watch_extraction.py", line 626, in extract_watch_info
    _extract_formats(info, player_response)
  File "/yt/youtube/yt_data_extract/watch_extraction.py", line 452, in _extract_formats
    update_format_with_type_info(fmt, yt_fmt)
  File "/yt/youtube/yt_data_extract/watch_extraction.py", line 411, in update_format_with_type_info
    type, fmt['ext'], codecs = match.groups()
AttributeError: 'NoneType' object has no attribute 'groups'