Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube:播放带有聊天室的直播回放视频时报错,可能是网站结构发生变化。 #26

Open
hwf1324 opened this issue Nov 13, 2024 · 3 comments

Comments

@hwf1324
Copy link
Contributor

hwf1324 commented Nov 13, 2024

以下是日志,似乎是没有找到指定的对象。

ERROR - unhandled exception (20:42:04.146) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:04.295) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:04.382) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:04.491) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:04.591) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:04.689) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:04.816) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:04.947) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:05.030) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:05.128) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:05.242) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:05.383) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
ERROR - unhandled exception (20:42:05.493) - MainThread (11216):
Traceback (most recent call last):
  File "gui\__init__.pyc", line 986, in Notify
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\__init__.py", line 279, in readSubtitle
    subtitle = self.subtitleAlg.getSubtitle()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 94, in getSubtitle
    self.readVoting()
  File "C:\Users\hwf1324\AppData\Roaming\nvda\addons\subtitle_reader\globalPlugins\subtitle_reader\youtube.py", line 325, in readVoting
    votingObj = self.chatRoom.firstChild.next.next
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next'
@maxe-hsieh
Copy link
Owner

我測試回放沒發現錯誤,可否提供您的測試影片呢?

@hwf1324
Copy link
Contributor Author

hwf1324 commented Nov 15, 2024

视频:https://www.youtube.com/watch?v=fjD2CVG9UBo&ab_channel=%E6%82%9F%E8%A8%A2

Chrome:版本 129.0.6668.101(正式版本) (64 位)

NVDA:版本:alpha-34581,32245d46(2025.1.0.34581)

字幕阅读器:版本:3.1

@maxe-hsieh
Copy link
Owner

字幕閱讀器支援的 NVDA 最新版本為 2024.4.1 在此版本無法重現您的問題。
若該問題只在 NVDA Alpha 版本出現,那麼字幕閱讀器並不支援此版本,因為 Alpha 隨時會進行許多不確定的修改,字幕閱讀器不打算隨時跟著這樣的變化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants