Skip to content

Commit

Permalink
Updated to 2.92
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxe committed Mar 4, 2024
1 parent 8dadbab commit 872e7ab
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 5 deletions.
20 changes: 20 additions & 0 deletions addon/doc/zh_TW/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# 更新日誌

## V2.92, 2024.3.5

版本代號:心靈之蛋

BGM Source:
https://youtu.be/ZGozosIMkLE

### 修正巷木

1. 修正 Youtube 介面改版,導致閱讀器找不到字幕的問題。
2. 修正在 Marumaru 嵌入的 Youtube 影片若有 CC 字幕,閱讀器會不斷朗讀重複歌詞的錯誤,修改為不閱讀 Youtube 字幕,畢竟 Marumaru 通常都有歌詞,需要看 Youtube 的字幕可直接點選嵌入的 Youtube 影片連結進行觀看。

### 不重要的內容

原本 BGM 想選《芙莉蓮》的《天晴》

---



## V2.91, 2023.12.25

版本代號: Santa Will Find You
Expand Down
3 changes: 2 additions & 1 deletion addon/globalPlugins/subtitle_reader/maru_maru.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def getSubtitleContainer(self):
return subtitleContainer

def getSubtitle(self):
super(MaruMaru, self).getSubtitle()
super(MaruMaru, self).readChapter()
super(MaruMaru, self).promptInfoCard()
return super(YoutubeAlg, self).getSubtitle()

6 changes: 6 additions & 0 deletions addon/globalPlugins/subtitle_reader/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def chromeGetSubtitle(self, obj):
# 變例每一行字幕
while line is not None:
part = line.firstChild
while part is not None:
if getattr(part, 'name', ''):
break

part = part.firstChild

# 處理一行當中被切成多個部分的字幕
while part is not None:
text = getattr(part, 'name', '')
Expand Down
4 changes: 2 additions & 2 deletions addon/manifest.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name = subtitle_reader
name = 字幕閱讀器
summary = "字幕閱讀器"
description = """當焦點位於網頁上的影片播放器時,讓 NVDA 讀出字幕。"""
author = "福恩 <[email protected]>"
url = https://github.com/maxe-hsieh/subtitle_reader
version = 2.91
version = 2.92
docFileName = readme.html
minimumNVDAVersion = 2019.2.1
lastTestedNVDAVersion = 2023.3
Expand Down
4 changes: 2 additions & 2 deletions buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _(arg):
# Add-on information variables
addon_info = {
# add-on Name/identifier, internal for NVDA
"addon_name": "subtitle_reader",
"addon_name": _("字幕閱讀器"),
# Add-on summary, usually the user visible name of the addon.
# Translators: Summary for this add-on
# to be shown on installation and add-on information found in Add-ons Manager.
Expand All @@ -25,7 +25,7 @@ def _(arg):
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("當焦點位於網頁上的影片播放器時,讓 NVDA 讀出字幕。"),
# version
"addon_version": "2.91",
"addon_version": "2.92",
# Author(s)
"addon_author": "福恩 <[email protected]>",
# URL for the add-on documentation support
Expand Down
Binary file added msgfmt.exe
Binary file not shown.
Binary file added xgettext.exe
Binary file not shown.

0 comments on commit 872e7ab

Please sign in to comment.