-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maxe
committed
Sep 5, 2024
1 parent
766eda8
commit 689452f
Showing
13 changed files
with
114 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#coding=utf-8 | ||
|
||
from .subtitle_alg import SubtitleAlg | ||
from .object_finder import find | ||
from .compatible import role | ||
|
||
class PrimeVideo(SubtitleAlg): | ||
def getVideoPlayer(self): | ||
obj = self.main.focusObject | ||
appName = obj.appModule.appName | ||
videoPlayer = find(obj, 'parent', 'class', 'atvwebplayersdk-overlays-container fpqiyer') | ||
if videoPlayer: | ||
videoPlayer = obj.parent.parent.parent.parent | ||
|
||
return videoPlayer | ||
|
||
def getSubtitleContainer(self): | ||
videoPlayer = self.main.videoPlayer | ||
container = videoPlayer.next.firstChild.firstChild | ||
return container | ||
|
||
def getSubtitle(self): | ||
obj = self.main.subtitleContainer | ||
return super(PrimeVideo, self).getSubtitle(obj) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
summary = "Tekstityksenlukija" | ||
description = """Lukee tekstityksen, kun kohdistus on verkkopohjaisessa videosoittimessa.""" | ||
description = """Lukee tekstitykset, kun kohdistus on verkkopohjaisessa videosoittimessa.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
summary = "Altyazı Okuyucu" | ||
description = """Odak web video oynatıcısında olduğunda NVDA'nın altyazı okumasını destekler.""" | ||
description = """Odak web video oynatıcısında olduğunda NVDA'nın altyazıyı okumasını destekler.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ summary = "字幕閱讀器" | |
description = """當焦點位於網頁上的影片播放器時,讓 NVDA 讀出字幕。""" | ||
author = "福恩 <[email protected]>" | ||
url = https://github.com/maxe-hsieh/subtitle_reader | ||
version = 2.97 | ||
version = 3.0 | ||
docFileName = readme.html | ||
minimumNVDAVersion = 2019.2.1 | ||
lastTestedNVDAVersion = 2024.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.97", | ||
"addon_version": "3.0", | ||
# Author(s) | ||
"addon_author": "福恩 <[email protected]>", | ||
# URL for the add-on documentation support | ||
|