[discoveryplus] Subtitle parsing broken: Parse error at position 56 (near '')
See original GitHub issueChecklist
- I’m reporting a feature request
- I’ve looked through the README
- I’ve verified that I’m running yt-dlp version 2022.02.04. (update instructions)
- I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Description
When downloading a video and yt-dlt got a parse error downloading subtitle all video/audio is not downloaded. It should skip only this sub title error.
D:\ytdlp>yt-dlp -vU --cookies-from-browser firefox --no-geo-bypass "https://www.discoveryplus.com/br/video/absurdos-da-engenharia-discovery-br/arranha-ceu-e-o-raio-da-morte" -f hls-3105 -o video.mp4 --write-subs --sub-langs all
[debug] Command-line config: ['-vU', '--cookies-from-browser', 'firefox', '--no-geo-bypass', 'https://www.discoveryplus.com/br/video/absurdos-da-engenharia-discovery-br/arranha-ceu-e-o-raio-da-morte', '-f', 'hls-3105', '-o', 'video.mp4', '--write-subs', '--sub-langs', 'all']
[debug] Portable config "D:\ytdlp\yt-dlp.conf": ['--ffmpeg-location', '.\\ffmpeg\\bin', '--ignore-config']
[Cookies] Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\User\AppData\Roaming\Mozilla\Firefox\Profiles\qd7vi5fr.default\cookies.sqlite"
[Cookies] Extracted 2115 cookies from firefox
[debug] Encodings: locale cp1252, fs utf-8, out utf-8 (No ANSI), err utf-8 (No ANSI), pref cp1252
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-105453-gcc5eb2e662-20220204 (setts), ffprobe N-105453-gcc5eb2e662-20220204
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [DiscoveryPlus] Extracting URL: https://www.discoveryplus.com/br/video/absurdos-da-engenharia-discovery-br/arranha-ceu-e-o-raio-da-morte
[DiscoveryPlus] absurdos-da-engenharia-discovery-br/arranha-ceu-e-o-raio-da-morte: Downloading JSON metadata
[DiscoveryPlus] 2290980: Downloading JSON metadata
[DiscoveryPlus] absurdos-da-engenharia-discovery-br/arranha-ceu-e-o-raio-da-morte: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Downloading subtitles: pt
[info] 2290980: Downloading 1 format(s): hls-3105
[info] Writing video subtitles to: video.pt.vtt
[debug] Invoking downloader on "https://dplus-br-prod-vod.akamaized.net/b797/e1ea/1329/03698b40-aca3-413d-88d7-319b4a5642ae/ts-raw/hdntl=exp=1645662057~acl=/b797/e1ea/1329/03698b40-aca3-413d-88d7-319b4a5642ae/ts-raw/*~data=hdntl~hmac=f2a7b443dd081a3d1aa9b57451101afd7b5f5cd0be24cc706cc7d1040a967133/caption-pt/subs.m3u8?hdntl=exp=1645662057~acl=/b797/e1ea/1329/03698b40-aca3-413d-88d7-319b4a5642ae/ts-raw/*~data=hdntl~hmac=f2a7b443dd081a3d1aa9b57451101afd7b5f5cd0be24cc706cc7d1040a967133&hdntl=exp=1645662057~acl=/b797/e1ea/1329/03698b40-aca3-413d-88d7-319b4a5642ae/ts-raw/*~data=hdntl~hmac=f2a7b443dd081a3d1aa9b57451101afd7b5f5cd0be24cc706cc7d1040a967133"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 6
[download] Destination: video.pt.vtt
[download] video.pt.vtt.part-Frag1 has already been downloaded
[download] 16.7% of ~336.00B at Unknown speed ETA Unknown (frag 1/6)ERROR: Parse error at position 56 (near '')
Traceback (most recent call last):
File "yt_dlp\YoutubeDL.py", line 1381, in wrapper
File "yt_dlp\YoutubeDL.py", line 1465, in __extract_info
File "yt_dlp\YoutubeDL.py", line 1517, in process_ie_result
File "yt_dlp\YoutubeDL.py", line 2607, in process_video_result
File "yt_dlp\YoutubeDL.py", line 2852, in process_info
File "yt_dlp\YoutubeDL.py", line 3825, in _write_subtitles
File "yt_dlp\YoutubeDL.py", line 2801, in dl
File "yt_dlp\downloader\common.py", line 440, in download
File "yt_dlp\downloader\hls.py", line 355, in real_download
File "yt_dlp\downloader\fragment.py", line 515, in download_and_append_fragments
File "yt_dlp\downloader\fragment.py", line 486, in append_fragment
File "yt_dlp\downloader\hls.py", line 270, in pack_fragment
File "yt_dlp\webvtt.py", line 364, in parse_fragment
File "yt_dlp\webvtt.py", line 220, in parse
yt_dlp.webvtt.ParseError: Parse error at position 56 (near '')
This specific site is geo-blocked and account is needed.
If someone help me I can try to fix it.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Problems with subtitles? – UK help centre - discovery+ - Support
Swipe down on the remote control and select text from the menu. Smart TV. Use one of the arrow keys to open the...
Read more >Closed captioning - discovery+ Help Center
Start watching an episode. Swipe down on the Apple TV remote and select the "Subtitles" option. Select "Auto" or "English CC.
Read more >Technical Issues - discovery+ Help Center
Technical Issues. Troubleshoot loading discovery+ on Roku OS 11.5 · Troubleshooting DRM error messages · Video playback issues on Android mobile devices ...
Read more >Discovery Plus
Watch HGTV, Food Network, TLC, ID and more plus exclusive originals, all in one place. Start your 7-day free trial today.
Read more >sudo: parse error in /etc/sudoers near line 23? - Ask Ubuntu
In Ubuntu 16.04, "Drop to Root terminal" asks for root password (which obviously will not work, because /etc/sudoers is broken). Pressing Ctrl+D will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A duplicate is better than off-topic comments under an unrelated issue.
No, that looks like an actual corrupt download. When you file this separately, can you use
--print-traffic
and attach at least the final 100 lines or so?Today i am not getting this error anymore ( probably discovery fixed subtitle issue ) but i still have .part files. subtitle_parts.zip