Skip to content

Commit

Permalink
Fix time calculation of Disney+
Browse files Browse the repository at this point in the history
The player never shows the total time so the current time has to be added with the remaining time
  • Loading branch information
TrojanerHD committed Jan 26, 2022
1 parent f8b6a3e commit 2c07f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function update(): void {
if (disneyDurationDiv) {
const rawText: string[] = disneyDurationDiv.innerText.split(' / ');
disney.currentTime = timeToSeconds(rawText[0]);
disney.duration = timeToSeconds(rawText[1]);
disney.duration = disney.currentTime + timeToSeconds(rawText[1]);
disney.playing = true;
} else if (disney.playing) disney.duration++;

Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "logitube",
"version": "1.5.0",
"version": "1.5.2",
"description": "Retrieves the video progress bar and projects it to the F-keys of a Logitech LightSync keyboard",
"background": {
"scripts": ["background.js"]
Expand Down

0 comments on commit 2c07f3e

Please sign in to comment.