Viki old subtitles sync #17745

Open
opened 2026-02-21 08:21:44 -05:00 by deekerman · 3 comments
Owner

Originally created by @shivsah on GitHub (Aug 18, 2019).

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2019.08.13
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

Some shows of the site viki had updated their subs link sometime back because the original subs weren't synced properly, Some example shows being Dream High and Pinocchio.

For example:-

https://www.viki.com/videos/91001v-dream-high-episode-1 this episode uses subtitle from the link https://api.viki.io/v4/videos/91001v/subtitles/en.vtt?app=100000a&sig=8b1dd0339766408903c35af2f6cd1f4184af187c&stream_id=78495332&t=1566130938&token=kQ_BXDV5TLSHhRI9rKVRQmPru0024185034uti00j8h5lU000_01x

but the one which gets downloaded is the other one.. included in the zip are both the files the one with correct in its name is the proper one.. when comparing you can see the difference in timestamps
Dream High - 1x01 - Episode 1.en.forced.zip

Originally created by @shivsah on GitHub (Aug 18, 2019). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.08.13. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Search the bugtracker for similar site feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a site feature request - [x] I've verified that I'm running youtube-dl version **2019.08.13** - [x] I've searched the bugtracker for similar site feature requests including closed ones ## Description <!-- Provide an explanation of your site feature request in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible. --> Some shows of the site viki had updated their subs link sometime back because the original subs weren't synced properly, Some example shows being Dream High and Pinocchio. For example:- [https://www.viki.com/videos/91001v-dream-high-episode-1](url) this episode uses subtitle from the link [https://api.viki.io/v4/videos/91001v/subtitles/en.vtt?app=100000a&sig=8b1dd0339766408903c35af2f6cd1f4184af187c&stream_id=78495332&t=1566130938&token=kQ_BXDV5TLSHhRI9rKVRQmPru0024185034uti00j8h5lU000_01x](url) but the one which gets downloaded is the other one.. included in the zip are both the files the one with correct in its name is the proper one.. when comparing you can see the difference in timestamps [Dream High - 1x01 - Episode 1.en.forced.zip](https://github.com/ytdl-org/youtube-dl/files/3513013/Dream.High.-.1x01.-.Episode.1.en.forced.zip)
Author
Owner

@shivsah commented on GitHub (Aug 18, 2019):

Forgot the link had a timestamp so it won't be accessible now but you can get both the files in the zip file

@shivsah commented on GitHub (Aug 18, 2019): Forgot the link had a timestamp so it won't be accessible now but you can get both the files in the zip file
Author
Owner

@manselmi commented on GitHub (Sep 1, 2019):

This seems related: https://support.viki.com/hc/en-us/community/posts/360028951053-Issue-Subtitles-out-of-sync

When loading https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1 (an episode of one of the shows mentioned in the link above) in Firefox, the English subtitle vtt file is synced correctly and begins as follows:

WEBVTT

1
00:00:03.819 --> 00:00:07.819
<i>Annals of the Joseon Dynasty, 1st Year of King Gwang Hae, Volume 20.
 Recorded on September 25th</i>

However when running

youtube-dl \
  --skip-download \
  --sub-format 'vtt' \
  --sub-langs 'en' \
  --write-sub \
  -- \
  https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1

the English subtitle vtt file is not synced correctly and begins as follows:

WEBVTT

1
00:00:00.360 --> 00:00:04.360
<i>Annals of the Joseon Dynasty, 1st Year of King Gwang Hae, Volume 20.
 Recorded on September 25th</i>
@manselmi commented on GitHub (Sep 1, 2019): This seems related: https://support.viki.com/hc/en-us/community/posts/360028951053-Issue-Subtitles-out-of-sync When loading https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1 (an episode of one of the shows mentioned in the link above) in Firefox, the English subtitle `vtt` file is synced correctly and begins as follows: ``` WEBVTT 1 00:00:03.819 --> 00:00:07.819 <i>Annals of the Joseon Dynasty, 1st Year of King Gwang Hae, Volume 20. Recorded on September 25th</i> ``` However when running ``` youtube-dl \ --skip-download \ --sub-format 'vtt' \ --sub-langs 'en' \ --write-sub \ -- \ https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1 ``` the English subtitle `vtt` file is _not_ synced correctly and begins as follows: ``` WEBVTT 1 00:00:00.360 --> 00:00:04.360 <i>Annals of the Joseon Dynasty, 1st Year of King Gwang Hae, Volume 20. Recorded on September 25th</i> ```
Author
Owner

@manselmi commented on GitHub (Sep 1, 2019):

Update: something else seems to be going on here.

The vtt file loaded by Firefox is synced with the video played by Firefox ( https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1 ). This is good.

However, when running

youtube-dl \
  --format 'best' \
  --sub-format 'vtt' \
  --sub-langs 'en' \
  --write-sub \
  --output 'My Love From the Star - 01.%(ext)s' \
  -- \
  https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1

The video downloaded by youtube-dl has a different intro from the video played in Firefox (!), and the vtt file downloaded by youtube-dl doesn't sync up with the video downloaded by youtube-dl. So strange.

@manselmi commented on GitHub (Sep 1, 2019): Update: something else seems to be going on here. The `vtt` file loaded by Firefox is synced with the video played by Firefox ( https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1 ). This is good. However, when running ``` youtube-dl \ --format 'best' \ --sub-format 'vtt' \ --sub-langs 'en' \ --write-sub \ --output 'My Love From the Star - 01.%(ext)s' \ -- \ https://www.viki.com/videos/1026409v-my-love-from-the-star-episode-1 ``` The video downloaded by `youtube-dl` has a different intro from the video played in Firefox (!), and the `vtt` file downloaded by `youtube-dl` doesn't sync up with the video downloaded by `youtube-dl`. So strange.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#17745
No description provided.