Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1tv.ru subtitles #9521

Open
9 of 10 tasks
milan-007 opened this issue Mar 23, 2024 · 2 comments
Open
9 of 10 tasks

1tv.ru subtitles #9521

milan-007 opened this issue Mar 23, 2024 · 2 comments
Labels
site-enhancement Feature request for some website triage Untriaged issue

Comments

@milan-007
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Czech

Example URLs

https://www.1tv.ru/shows/kukly-naslednika-tutti/vypuski/dieta-mayka-ili-posledniy-shans-pompeo-kukly-naslednika-tutti-vypusk-ot-07-02-2024

Provide a description that is worded well enough to be understood

When open video in site player I can choose "subtitles on", and subtitles appear (russian - probably automatic subtitles). Yt-dlp says there are no subtitles.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', '--list-subs', 'https://www.1tv.ru/shows/kukly-naslednika-tutti/vypuski/dieta-mayka-ili-posledniy-shans-pompeo-kukly-naslednika-tutti-vypusk-ot-07-02-2024']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.03.10 from yt-dlp/yt-dlp [615a84447] (zip)
[debug] Python 3.11.2 (CPython x86_64 64bit) - Linux-6.1.0-17-amd64-x86_64-with-glibc2.36 (OpenSSL 3.0.11 19 Sep 2023, glibc 2.36)
[debug] exe versions: ffmpeg 6.0.1 (fdk,setts), ffprobe 6.0.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.11.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, pyxattr-0.8.1, requests-2.28.1, sqlite3-3.40.1, urllib3-1.26.12, websockets-10.4
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1803 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.03.10 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.03.10 from yt-dlp/yt-dlp)
[1tv] Extracting URL: https://www.1tv.ru/shows/kukly-naslednika-tutti/vypuski/dieta-mayka-ili-posledniy-shans-pompeo-kukly-naslednika-tutti-vypusk-ot-07-02-2024
[1tv] dieta-mayka-ili-posledniy-shans-pompeo-kukly-naslednika-tutti-vypusk-ot-07-02-2024: Downloading webpage
[1tv] dieta-mayka-ili-posledniy-shans-pompeo-kukly-naslednika-tutti-vypusk-ot-07-02-2024: Downloading JSON metadata
[1tv] dieta-mayka-ili-posledniy-shans-pompeo-kukly-naslednika-tutti-vypusk-ot-07-02-2024: Downloading m3u8 information
[download] Downloading playlist: Диета Майка, или Последний шанс Помпео. Куклы наследника Тутти. Выпуск от 07.02.2024
[1tv] Playlist Диета Майка, или Последний шанс Помпео. Куклы наследника Тутти. Выпуск от 07.02.2024: Downloading 1 items of 1
[download] Downloading item 1 of 1
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
745012 has no subtitles
[download] Finished downloading playlist: Диета Майка, или Последний шанс Помпео. Куклы наследника Тутти. Выпуск от 07.02.2024
@milan-007 milan-007 added site-enhancement Feature request for some website triage Untriaged issue labels Mar 23, 2024
@dirkf
Copy link
Contributor

dirkf commented Mar 24, 2024

The extractor for the site doesn't currently look for subtitles.

Perhaps things have changed since the extractor was written, but the JSON downloaded may now include

  1. a sources member that may list m3u8 with subtitles, m3u8, mp4, as well as the mbr member from which the video formats are currently extracted
  2. a sources_subtitles member with a stand-alone subtitle URL (the site doesn't allow for multiple languages).

However, the Русский subtitles in the m3u8 are tagged English, which must be a defect in 1TV's playout system:
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs0",LANGUAGE="en",NAME="English",AUTOSELECT=YES,DEFAULT=YES,URI="index-f4.m3u8"

The stand-alone subtitles are more accurately described:

      'src': 'https://static.1tv.ru/uploads/video/material/caption/6/_original/1236_94e40d0b0b.vtt',
      'label': 'Русский',
      'track': 'ru',
      'type': 'text/vtt',
      'shift': 0

The existing code guesses a manifest URL. The HLS formats extracted from that and the two m3u8 URLs in sources appear to be duplicates, and the mp4 format in sources appears to duplicate one of the mbr formats. However the actual hostnames may differ; it's not clear whether there's any need to collect more than the MP4 formats and one set of HLS formats.

@milan-007
Copy link
Author

The extractor for the site doesn't currently look for subtitles.

Perhaps things have changed since the extractor was written, but the JSON downloaded may now include

Thank you for studying problem and reply so fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

2 participants