Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Viki Wrong Subtitle Timestamp on some videos #26385
Comments
|
Like I said here there is missing something. After few minutes of trying different things I noticed all you need is to add a Browser The one returned by browser will contain 1080p while api will cap at 720p even if logged in. However it's not that easy (so far) to get the browser one. It will require reverse engineering / debugging the js file that triggers that request. So for the subtitles regarding the example video given you would need this I forgot to mention. The same issue (400/404) that my PR fixes applies to the subtitles. |
Wow I think is what I'm looking for. I'm gonna test this later and I will update you. |
|
@blackjack4494 alright I get it now. The little bug from youtube-dl for not getting the right subtitle is. It's getting the subtitle link from "subtitle" json object |
|
@zackmark29 I assume the json you got is custom made by your own program? |
@blackjack4494 no, it's from https://www.viki.com/api/videos/{video_id} |


Checklist
Verbose log
Description
If you try to get the english subtitle from this link, https://www.viki.com/videos/91001v-dream-high-episode-1
you will get the result (take note of the ts):
WEBVTT
1
00:00:07.034 --> 00:00:11.013
Right now, fans are in attendance at the L.A. Staples Center
The timestamp must be like this:
WEBVTT
1
00:00:00.824 --> 00:00:04.803
Right now, fans are in attendance at the L.A. Staples Center