hummblebee

hummblebee

Member Since 5 years ago

Experience Points
1
follower
Lessons Completed
6
follow
Lessons Completed
57
stars
Best Reply Awards
0
repos

11 contributions in the last year

Pinned
Activity
Nov
25
4 days ago
Activity icon
issue

hummblebee issue comment shadowsocks/shadowsocks-libev

hummblebee
hummblebee

server work fine but doesn't pass data to cliects on windows and android didn't open websites

What version of shadowsocks-libev are you using?

last version from git

What operating system are you using?

centos7

What did you do?

completely install and clients successfully connected and logs are about google.dns resolve requested url domains

What did you expect to see?

clients like chrome and telegram get data and connect to internet

What did you see instead?

no data received by clients and just requests passing to server and dns resolved

What is your config in detail (with all sensitive info masked)?

all config correct via script and work fine

hummblebee
hummblebee

I just created an issue before seeing this one, I guess mine is duplicate of this. Just to rule out our server provider, what is your provider company?

Activity icon
issue

hummblebee issue shadowsocks/shadowsocks-libev

hummblebee
hummblebee

Successful connection but no data flow between my VPS and my PC

What version of shadowsocks-libev are you using?

3.3.5, cloned from the last commit as of now

What operating system are you using?

Ubuntu 20.04 on VPS Ubuntu 21.10 on client

What did you do?

Setup shadowsocks-libev on my VPS and my personal computer. Added the desired ports in my firewall ufw, even went as far as completely disabling the firewall but to no avail!

What did you expect to see?

I expected to bypass my ISP restrictions.

What did you see instead?

My browser (set to 127.0.0.1:1081) will not load any websites!

What is your config in detail (with all sensitive info masked)?

ss-server config.json:

{
   "server":["::0", "0.0.0.0"],
   "server_port":800,
   "password":"12characterpassword",
   "method":"chacha20-ietf-poly1305",
   "timeout":60,
   "mode":"tcp_and_udp",
   "nameserver":"1.1.1.1",
   "fast_open":false
}

ss-local config.json:

{
  "server": "x.x.x.x",
  "server_port": 800,
  "password": "12characterpassword",
  "method": "chacha20-ietf-poly1305",
  "mode": "tcp_and_udp",
  "fast_open": false,
  "local_address": "127.0.0.1",
  "local_port": 1081
}

The following is a sample log output from both the server and the client, when I tried to load youtube.com on the client machine:

This the -v log output from ss-server:

2021-11-25 20:50:30 INFO: UDP relay enabled
 2021-11-25 20:50:30 INFO: initializing ciphers... chacha20-ietf-poly1305
 2021-11-25 20:50:30 INFO: using nameserver: 1.1.1.1
 2021-11-25 20:50:30 INFO: tcp server listening at [::0]:800
 2021-11-25 20:50:30 INFO: tcp server listening at 0.0.0.0:800
 2021-11-25 20:50:30 INFO: udp server listening at [::0]:800
 2021-11-25 20:50:30 INFO: udp server listening at 0.0.0.0:800
 2021-11-25 20:50:30 INFO: running from root user
 2021-11-25 20:50:38 INFO: new connection from client, 1 opened client connections
 2021-11-25 20:50:38 INFO: [800] connect to 10.10.34.35:443
 2021-11-25 20:50:38 INFO: new connection to remote, 1 opened remote connections
 2021-11-25 20:50:48 INFO: new connection from client, 2 opened client connections
 2021-11-25 20:50:48 INFO: [800] connect to [2606:4700::6810:f9f9]:443
 2021-11-25 20:50:48 INFO: new connection to remote, 2 opened remote connections
 2021-11-25 20:50:52 INFO: new connection from client, 3 opened client connections
 2021-11-25 20:50:52 INFO: [800] connect to 35.155.98.26:443
 2021-11-25 20:50:52 INFO: new connection to remote, 3 opened remote connections
 2021-11-25 20:51:03 INFO: close a connection to remote, 2 opened remote connections
 2021-11-25 20:51:03 INFO: close a connection from client, 2 opened client connections
 2021-11-25 20:51:16 INFO: new connection from client, 3 opened client connections
 2021-11-25 20:51:16 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:16 INFO: new connection to remote, 3 opened remote connections
 2021-11-25 20:51:17 INFO: new connection from client, 4 opened client connections
 2021-11-25 20:51:17 INFO: [800] connect to 10.10.34.35:443
 2021-11-25 20:51:17 INFO: new connection to remote, 4 opened remote connections
 2021-11-25 20:51:21 INFO: new connection from client, 5 opened client connections
 2021-11-25 20:51:21 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:21 INFO: new connection to remote, 5 opened remote connections
 2021-11-25 20:51:26 INFO: new connection from client, 6 opened client connections
 2021-11-25 20:51:26 INFO: [800] connect to [2606:4700::6810:f9f9]:443
 2021-11-25 20:51:26 INFO: new connection to remote, 6 opened remote connections
 2021-11-25 20:51:26 INFO: new connection from client, 7 opened client connections
 2021-11-25 20:51:26 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:26 INFO: new connection to remote, 7 opened remote connections
 2021-11-25 20:51:31 INFO: new connection from client, 8 opened client connections
 2021-11-25 20:51:31 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:31 INFO: new connection to remote, 8 opened remote connections
 2021-11-25 20:51:36 INFO: new connection from client, 9 opened client connections
 2021-11-25 20:51:36 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:36 INFO: new connection to remote, 9 opened remote connections
 2021-11-25 20:51:39 INFO: new connection from client, 10 opened client connections
 2021-11-25 20:51:39 INFO: [800] connect to 35.244.247.133:443
 2021-11-25 20:51:39 INFO: new connection to remote, 10 opened remote connections
 2021-11-25 20:51:41 INFO: close a connection to remote, 9 opened remote connections
 2021-11-25 20:51:41 INFO: close a connection from client, 9 opened client connections
 2021-11-25 20:51:41 INFO: new connection from client, 10 opened client connections
 2021-11-25 20:51:41 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:41 INFO: new connection to remote, 10 opened remote connections
 2021-11-25 20:51:49 INFO: close a connection to remote, 9 opened remote connections
 2021-11-25 20:51:49 INFO: close a connection from client, 9 opened client connections
 2021-11-25 20:51:51 INFO: new connection from client, 10 opened client connections
 2021-11-25 20:51:51 INFO: [800] connect to 44.226.6.9:443
 2021-11-25 20:51:51 INFO: new connection to remote, 10 opened remote connections
 2021-11-25 20:52:10 INFO: closed gracefully <---- I hit CTRL+C here to stop the process
 2021-11-25 20:52:10 INFO: close a connection from client, 9 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 9 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 8 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 8 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 7 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 7 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 6 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 6 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 5 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 5 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 4 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 4 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 3 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 3 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 2 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 2 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 1 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 1 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 0 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 0 opened remote connections

And here's the -v log output from ss-local (server ip is masked x.x.x.x):

 2021-11-26 00:20:33 INFO: initializing ciphers... chacha20-ietf-poly1305
 2021-11-26 00:20:33 INFO: listening at 127.0.0.1:1081
 2021-11-26 00:20:33 INFO: udprelay enabled
 2021-11-26 00:20:37 INFO: connection from 127.0.0.1:38240
 2021-11-26 00:20:37 INFO: connect to 10.10.34.35:443
 2021-11-26 00:20:37 INFO: remote: x.x.x.x:800
 2021-11-26 00:20:47 INFO: connection from 127.0.0.1:38242
 2021-11-26 00:20:47 INFO: connect to [2606:4700::6810:f9f9]:443
 2021-11-26 00:20:47 INFO: remote: x.x.x.x:800
 2021-11-26 00:20:51 INFO: connection from 127.0.0.1:38244
 2021-11-26 00:20:51 INFO: connect to 35.155.98.26:443
 2021-11-26 00:20:51 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:15 INFO: connection from 127.0.0.1:38246
 2021-11-26 00:21:15 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:15 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:16 INFO: connection from 127.0.0.1:38248
 2021-11-26 00:21:16 INFO: connect to 10.10.34.35:443
 2021-11-26 00:21:16 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:20 INFO: connection from 127.0.0.1:38250
 2021-11-26 00:21:20 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:20 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:25 INFO: connection from 127.0.0.1:38252
 2021-11-26 00:21:25 INFO: connect to [2606:4700::6810:f9f9]:443
 2021-11-26 00:21:25 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:25 INFO: connection from 127.0.0.1:38254
 2021-11-26 00:21:25 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:25 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:30 INFO: connection from 127.0.0.1:38256
 2021-11-26 00:21:30 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:30 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:35 INFO: connection from 127.0.0.1:38258
 2021-11-26 00:21:35 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:35 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:38 INFO: connection from 127.0.0.1:38262
 2021-11-26 00:21:38 INFO: connect to 35.244.247.133:443
 2021-11-26 00:21:38 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:40 INFO: connection from 127.0.0.1:38264
 2021-11-26 00:21:40 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:40 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:51 INFO: connection from 127.0.0.1:38266
 2021-11-26 00:21:51 INFO: connect to 44.226.6.9:443
 2021-11-26 00:21:51 INFO: remote: x.x.x.x:800
^C 2021-11-26 00:21:56 INFO: closed gracefully

For the sake of comparison, I have another shadowsocks service from a 3rd party company that also runs on port 800 and it's working! So I believe the port is open and working on my ISP, and I'm using exactly the client config.json I pasted above as my own except for the server IP of course, and it works like a charm!

I'm not sure why my own VPS does not work! What am I doing wrong?

Thank you!

Nov
23
6 days ago
Nov
17
1 week ago
Activity icon
issue

hummblebee issue comment yt-dlp/yt-dlp

hummblebee
hummblebee

[YouTube] Control characters or escape sequences are inserted as text in subtitles (\h or &nbsp)

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.11.10.1. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • 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

Subtitles contain unwanted wrong/unwanted characters (specifically \h repeating at the end of every line) for these two YouTube videos here and here (I'm guessing the whole playlist affected)

I have attached the log below, showing my config flags but I also tried with these flags removed: '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs' still the same result, only now subtitle is in .vtt format and instead of \hs I get &nbsps !

Excerpt from the srt:

1
00:00:02,477 --> 00:00:06,000
[Rody] Hi I'm Rody Davis, a Developer\h
Advocate for Material Design.

2
00:00:06,000 --> 00:00:09,520
[Ivy] And I'm Ivy Knight, a Designer\h
Advocate for Material Design.

3
00:00:09,520 --> 00:00:13,120
[Rody] Our team focuses on helping\h
the community build beautifully\h\h

And excerpt from the vtt:

WEBVTT
Kind: captions
Language: en

00:00:02.477 --> 00:00:06.000
[Rody] Hi I'm Rody Davis, a Developer&nbsp;
Advocate for Material Design.

00:00:06.000 --> 00:00:09.520
[Ivy] And I'm Ivy Knight, a Designer&nbsp;
Advocate for Material Design.

00:00:09.520 --> 00:00:13.120
[Rody] Our team focuses on helping&nbsp;
the community build beautifully&nbsp;&nbsp;

Verbose log

❯ yt-dlp -Uv https://www.youtube.com/watch\?v\=clDuqcKgNBQ\&list\=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY\&index\=8
[debug] Command-line config: ['-Uv', 'https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8']
[debug] User config file: /home/humblebee/.config/yt-dlp/config
[debug] User config: ['--proxy', '127.0.0.1:3128', '-f', 'bestvideo+bestaudio/best', '-S', 'codec:avc:m4a,fps', '--geo-bypass', '--downloader', 'aria2c', '--downloader', 'dash,m3u8:native', '--throttled-rate', '100K', '--concurrent-fragments', '8', '--embed-metadata', '--embed-thumbnail', '--embed-subs', '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs', '--convert-thumbnails', 'jpg', '--merge-output-format', 'mp4', '--windows-filenames', '--console-title', '--no-playlist', '--output', '%(title)s.%(ext)s', '--paths', '~/Downloads/YouTube/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.11.10.1 (zip)
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.13.0-21-generic-x86_64-with-glibc2.34
[debug] exe versions: ffmpeg N-104442-g783935de18 (setts), ffprobe N-104442-g783935de18, rtmpdump 2.4
[debug] Optional libraries: keyring, sqlite
[debug] Proxy map: {'http': '127.0.0.1:3128', 'https': '127.0.0.1:3128'}
yt-dlp is up to date (2021.11.10.1)
[debug] [youtube:tab] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8
[youtube:tab] Downloading just video clDuqcKgNBQ because of --no-playlist
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ
[youtube] clDuqcKgNBQ: Downloading webpage
[youtube] clDuqcKgNBQ: Downloading android player API JSON
[debug] Sort order given by user: codec:avc:m4a, fps
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, vcodec:avc(7), acodec:m4a(8), fps, quality, res, hdr:12(7), source, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[info] clDuqcKgNBQ: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] Invoking downloader on "https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --header 'Cookie: CONSENT=YES+cb.20210328-17-p0.en+FX+686; GPS=1; YSC=e3D78uGv0Uo; VISITOR_INFO1_LIVE=gBdR8U0JoEs' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt.part' --auto-file-renaming=false -- 'https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt'
[aria2c] Downloaded 23675 bytes                                                                                                                                        
[download] 100% of 23.12KiB in 00:01
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt' -f srt 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp" to jpg
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp' -bsf:v mjpeg2jpeg 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp (pass -k to keep)
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 67250377 bytes1.0MiB]                                                                                                                              
[download] 100% of 64.13MiB in 00:49
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 17161914 bytes0.9MiB]                                                                                                                              
[download] 100% of 16.37MiB in 00:17
[Merger] Merging formats into "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4 (pass -k to keep)
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a (pass -k to keep)
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedSubtitle] Embedding subtitles in "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt' -c copy -map 0 -dn -map -0:s -map -0:d -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt (pass -k to keep)
[Metadata] Adding metadata to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -map 0 -dn -c copy -metadata 'title=Material You & Figma: Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021)' -metadata date=20211110 -metadata 'description=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'synopsis=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'purl=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata 'comment=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata artist=Figma 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedThumbnail] ffmpeg: Adding thumbnail to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg' -c copy -map 0 -dn -map 1 -disposition:3 attached_pic 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg (pass -k to keep)
hummblebee
hummblebee

SRT doesn't offically support special formatting or control codes. Only <b>, <i>, <u> and <font> are understood by most (if not all) players. Maybe some will also understand {\an8} which is technically an SSA/ASS feature. IMO the conversion is wrong here, either strip all formatting or keep only those 4 tags (I would argue at least <i> is potentially useful as it often indicates a background speaker, and maybe <font> for sites like BBC iPlayer that love to use colors to indicate speakers).

Thanks for the swift reply! I believe SRT is not the issue here but rather non-breaking space ( &nbsp;) tags in the original .vtt, and according to the link I shared earlier, we can strip them easily with a simple find and replace before the convertion to .srt , maybe?

Activity icon
issue

hummblebee issue comment yt-dlp/yt-dlp

hummblebee
hummblebee

[YouTube] Control characters or escape sequences are inserted as text in subtitles (\h or &nbsp)

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.11.10.1. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • 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

Subtitles contain unwanted wrong/unwanted characters (specifically \h repeating at the end of every line) for these two YouTube videos here and here (I'm guessing the whole playlist affected)

I have attached the log below, showing my config flags but I also tried with these flags removed: '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs' still the same result, only now subtitle is in .vtt format and instead of \hs I get &nbsps !

Excerpt from the srt:

1
00:00:02,477 --> 00:00:06,000
[Rody] Hi I'm Rody Davis, a Developer\h
Advocate for Material Design.

2
00:00:06,000 --> 00:00:09,520
[Ivy] And I'm Ivy Knight, a Designer\h
Advocate for Material Design.

3
00:00:09,520 --> 00:00:13,120
[Rody] Our team focuses on helping\h
the community build beautifully\h\h

And excerpt from the vtt:

WEBVTT
Kind: captions
Language: en

00:00:02.477 --> 00:00:06.000
[Rody] Hi I'm Rody Davis, a Developer&nbsp;
Advocate for Material Design.

00:00:06.000 --> 00:00:09.520
[Ivy] And I'm Ivy Knight, a Designer&nbsp;
Advocate for Material Design.

00:00:09.520 --> 00:00:13.120
[Rody] Our team focuses on helping&nbsp;
the community build beautifully&nbsp;&nbsp;

Verbose log

❯ yt-dlp -Uv https://www.youtube.com/watch\?v\=clDuqcKgNBQ\&list\=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY\&index\=8
[debug] Command-line config: ['-Uv', 'https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8']
[debug] User config file: /home/humblebee/.config/yt-dlp/config
[debug] User config: ['--proxy', '127.0.0.1:3128', '-f', 'bestvideo+bestaudio/best', '-S', 'codec:avc:m4a,fps', '--geo-bypass', '--downloader', 'aria2c', '--downloader', 'dash,m3u8:native', '--throttled-rate', '100K', '--concurrent-fragments', '8', '--embed-metadata', '--embed-thumbnail', '--embed-subs', '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs', '--convert-thumbnails', 'jpg', '--merge-output-format', 'mp4', '--windows-filenames', '--console-title', '--no-playlist', '--output', '%(title)s.%(ext)s', '--paths', '~/Downloads/YouTube/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.11.10.1 (zip)
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.13.0-21-generic-x86_64-with-glibc2.34
[debug] exe versions: ffmpeg N-104442-g783935de18 (setts), ffprobe N-104442-g783935de18, rtmpdump 2.4
[debug] Optional libraries: keyring, sqlite
[debug] Proxy map: {'http': '127.0.0.1:3128', 'https': '127.0.0.1:3128'}
yt-dlp is up to date (2021.11.10.1)
[debug] [youtube:tab] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8
[youtube:tab] Downloading just video clDuqcKgNBQ because of --no-playlist
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ
[youtube] clDuqcKgNBQ: Downloading webpage
[youtube] clDuqcKgNBQ: Downloading android player API JSON
[debug] Sort order given by user: codec:avc:m4a, fps
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, vcodec:avc(7), acodec:m4a(8), fps, quality, res, hdr:12(7), source, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[info] clDuqcKgNBQ: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] Invoking downloader on "https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --header 'Cookie: CONSENT=YES+cb.20210328-17-p0.en+FX+686; GPS=1; YSC=e3D78uGv0Uo; VISITOR_INFO1_LIVE=gBdR8U0JoEs' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt.part' --auto-file-renaming=false -- 'https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt'
[aria2c] Downloaded 23675 bytes                                                                                                                                        
[download] 100% of 23.12KiB in 00:01
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt' -f srt 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp" to jpg
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp' -bsf:v mjpeg2jpeg 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp (pass -k to keep)
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 67250377 bytes1.0MiB]                                                                                                                              
[download] 100% of 64.13MiB in 00:49
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 17161914 bytes0.9MiB]                                                                                                                              
[download] 100% of 16.37MiB in 00:17
[Merger] Merging formats into "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4 (pass -k to keep)
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a (pass -k to keep)
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedSubtitle] Embedding subtitles in "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt' -c copy -map 0 -dn -map -0:s -map -0:d -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt (pass -k to keep)
[Metadata] Adding metadata to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -map 0 -dn -c copy -metadata 'title=Material You & Figma: Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021)' -metadata date=20211110 -metadata 'description=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'synopsis=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'purl=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata 'comment=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata artist=Figma 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedThumbnail] ffmpeg: Adding thumbnail to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg' -c copy -map 0 -dn -map 1 -disposition:3 attached_pic 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg (pass -k to keep)
hummblebee
hummblebee
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

Any progress on this?

I have recorded a screen cast depicting the issue I described earlier (the dark editor theme being broken), I hope it helps.

Thank you again for you time!

https://user-images.githubusercontent.com/18480836/142212865-db1f3548-2828-4bf2-8b1e-483d49184053.mp4

Nov
11
2 weeks ago
Activity icon
issue

hummblebee issue comment yt-dlp/yt-dlp

hummblebee
hummblebee

[YouTube] Control characters or escape sequences are inserted as text in subtitles (\h or &nbsp)

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.11.10.1. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • 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

Subtitles contain unwanted wrong/unwanted characters (specifically \h repeating at the end of every line) for these two YouTube videos here and here (I'm guessing the whole playlist affected)

I have attached the log below, showing my config flags but I also tried with these flags removed: '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs' still the same result, only now subtitle is in .vtt format and instead of \hs I get &nbsps !

Excerpt from the srt:

1
00:00:02,477 --> 00:00:06,000
[Rody] Hi I'm Rody Davis, a Developer\h
Advocate for Material Design.

2
00:00:06,000 --> 00:00:09,520
[Ivy] And I'm Ivy Knight, a Designer\h
Advocate for Material Design.

3
00:00:09,520 --> 00:00:13,120
[Rody] Our team focuses on helping\h
the community build beautifully\h\h

And excerpt from the vtt:

WEBVTT
Kind: captions
Language: en

00:00:02.477 --> 00:00:06.000
[Rody] Hi I'm Rody Davis, a Developer&nbsp;
Advocate for Material Design.

00:00:06.000 --> 00:00:09.520
[Ivy] And I'm Ivy Knight, a Designer&nbsp;
Advocate for Material Design.

00:00:09.520 --> 00:00:13.120
[Rody] Our team focuses on helping&nbsp;
the community build beautifully&nbsp;&nbsp;

Verbose log

❯ yt-dlp -Uv https://www.youtube.com/watch\?v\=clDuqcKgNBQ\&list\=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY\&index\=8
[debug] Command-line config: ['-Uv', 'https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8']
[debug] User config file: /home/humblebee/.config/yt-dlp/config
[debug] User config: ['--proxy', '127.0.0.1:3128', '-f', 'bestvideo+bestaudio/best', '-S', 'codec:avc:m4a,fps', '--geo-bypass', '--downloader', 'aria2c', '--downloader', 'dash,m3u8:native', '--throttled-rate', '100K', '--concurrent-fragments', '8', '--embed-metadata', '--embed-thumbnail', '--embed-subs', '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs', '--convert-thumbnails', 'jpg', '--merge-output-format', 'mp4', '--windows-filenames', '--console-title', '--no-playlist', '--output', '%(title)s.%(ext)s', '--paths', '~/Downloads/YouTube/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.11.10.1 (zip)
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.13.0-21-generic-x86_64-with-glibc2.34
[debug] exe versions: ffmpeg N-104442-g783935de18 (setts), ffprobe N-104442-g783935de18, rtmpdump 2.4
[debug] Optional libraries: keyring, sqlite
[debug] Proxy map: {'http': '127.0.0.1:3128', 'https': '127.0.0.1:3128'}
yt-dlp is up to date (2021.11.10.1)
[debug] [youtube:tab] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8
[youtube:tab] Downloading just video clDuqcKgNBQ because of --no-playlist
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ
[youtube] clDuqcKgNBQ: Downloading webpage
[youtube] clDuqcKgNBQ: Downloading android player API JSON
[debug] Sort order given by user: codec:avc:m4a, fps
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, vcodec:avc(7), acodec:m4a(8), fps, quality, res, hdr:12(7), source, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[info] clDuqcKgNBQ: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] Invoking downloader on "https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --header 'Cookie: CONSENT=YES+cb.20210328-17-p0.en+FX+686; GPS=1; YSC=e3D78uGv0Uo; VISITOR_INFO1_LIVE=gBdR8U0JoEs' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt.part' --auto-file-renaming=false -- 'https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt'
[aria2c] Downloaded 23675 bytes                                                                                                                                        
[download] 100% of 23.12KiB in 00:01
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt' -f srt 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp" to jpg
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp' -bsf:v mjpeg2jpeg 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp (pass -k to keep)
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 67250377 bytes1.0MiB]                                                                                                                              
[download] 100% of 64.13MiB in 00:49
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 17161914 bytes0.9MiB]                                                                                                                              
[download] 100% of 16.37MiB in 00:17
[Merger] Merging formats into "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4 (pass -k to keep)
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a (pass -k to keep)
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedSubtitle] Embedding subtitles in "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt' -c copy -map 0 -dn -map -0:s -map -0:d -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt (pass -k to keep)
[Metadata] Adding metadata to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -map 0 -dn -c copy -metadata 'title=Material You & Figma: Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021)' -metadata date=20211110 -metadata 'description=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'synopsis=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'purl=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata 'comment=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata artist=Figma 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedThumbnail] ffmpeg: Adding thumbnail to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg' -c copy -map 0 -dn -map 1 -disposition:3 attached_pic 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg (pass -k to keep)
hummblebee
hummblebee

There is nothing for me to do about it:

* The subtitles are downloaded in vtt as-is provided by youtube (and the subs are correct)

* The conversion to srt is done by ffmpeg (the srt  file is also valid)

* Displaying is done by your player <== Here's where the issue is

Okay I understand, but I stumbled upon this Stackoverflow answer that takes a .vtt and cleans it and along the way it removes &nbsp; from content, do you think we can implement something like this? Since yt-dlp is developed in Python I guess it will be manageable.

Activity icon
issue

hummblebee issue comment yt-dlp/yt-dlp

hummblebee
hummblebee

[YouTube] Control characters or escape sequences are inserted as text in subtitles (\h or &nbsp)

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.11.10.1. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • 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

Subtitles contain unwanted wrong/unwanted characters (specifically \h repeating at the end of every line) for these two YouTube videos here and here (I'm guessing the whole playlist affected)

I have attached the log below, showing my config flags but I also tried with these flags removed: '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs' still the same result, only now subtitle is in .vtt format and instead of \hs I get &nbsps !

Excerpt from the srt:

1
00:00:02,477 --> 00:00:06,000
[Rody] Hi I'm Rody Davis, a Developer\h
Advocate for Material Design.

2
00:00:06,000 --> 00:00:09,520
[Ivy] And I'm Ivy Knight, a Designer\h
Advocate for Material Design.

3
00:00:09,520 --> 00:00:13,120
[Rody] Our team focuses on helping\h
the community build beautifully\h\h

And excerpt from the vtt:

WEBVTT
Kind: captions
Language: en

00:00:02.477 --> 00:00:06.000
[Rody] Hi I'm Rody Davis, a Developer&nbsp;
Advocate for Material Design.

00:00:06.000 --> 00:00:09.520
[Ivy] And I'm Ivy Knight, a Designer&nbsp;
Advocate for Material Design.

00:00:09.520 --> 00:00:13.120
[Rody] Our team focuses on helping&nbsp;
the community build beautifully&nbsp;&nbsp;

Verbose log

❯ yt-dlp -Uv https://www.youtube.com/watch\?v\=clDuqcKgNBQ\&list\=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY\&index\=8
[debug] Command-line config: ['-Uv', 'https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8']
[debug] User config file: /home/humblebee/.config/yt-dlp/config
[debug] User config: ['--proxy', '127.0.0.1:3128', '-f', 'bestvideo+bestaudio/best', '-S', 'codec:avc:m4a,fps', '--geo-bypass', '--downloader', 'aria2c', '--downloader', 'dash,m3u8:native', '--throttled-rate', '100K', '--concurrent-fragments', '8', '--embed-metadata', '--embed-thumbnail', '--embed-subs', '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs', '--convert-thumbnails', 'jpg', '--merge-output-format', 'mp4', '--windows-filenames', '--console-title', '--no-playlist', '--output', '%(title)s.%(ext)s', '--paths', '~/Downloads/YouTube/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.11.10.1 (zip)
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.13.0-21-generic-x86_64-with-glibc2.34
[debug] exe versions: ffmpeg N-104442-g783935de18 (setts), ffprobe N-104442-g783935de18, rtmpdump 2.4
[debug] Optional libraries: keyring, sqlite
[debug] Proxy map: {'http': '127.0.0.1:3128', 'https': '127.0.0.1:3128'}
yt-dlp is up to date (2021.11.10.1)
[debug] [youtube:tab] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8
[youtube:tab] Downloading just video clDuqcKgNBQ because of --no-playlist
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ
[youtube] clDuqcKgNBQ: Downloading webpage
[youtube] clDuqcKgNBQ: Downloading android player API JSON
[debug] Sort order given by user: codec:avc:m4a, fps
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, vcodec:avc(7), acodec:m4a(8), fps, quality, res, hdr:12(7), source, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[info] clDuqcKgNBQ: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] Invoking downloader on "https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --header 'Cookie: CONSENT=YES+cb.20210328-17-p0.en+FX+686; GPS=1; YSC=e3D78uGv0Uo; VISITOR_INFO1_LIVE=gBdR8U0JoEs' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt.part' --auto-file-renaming=false -- 'https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt'
[aria2c] Downloaded 23675 bytes                                                                                                                                        
[download] 100% of 23.12KiB in 00:01
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt' -f srt 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp" to jpg
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp' -bsf:v mjpeg2jpeg 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp (pass -k to keep)
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 67250377 bytes1.0MiB]                                                                                                                              
[download] 100% of 64.13MiB in 00:49
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 17161914 bytes0.9MiB]                                                                                                                              
[download] 100% of 16.37MiB in 00:17
[Merger] Merging formats into "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4 (pass -k to keep)
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a (pass -k to keep)
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedSubtitle] Embedding subtitles in "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt' -c copy -map 0 -dn -map -0:s -map -0:d -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt (pass -k to keep)
[Metadata] Adding metadata to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -map 0 -dn -c copy -metadata 'title=Material You & Figma: Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021)' -metadata date=20211110 -metadata 'description=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'synopsis=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'purl=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata 'comment=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata artist=Figma 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedThumbnail] ffmpeg: Adding thumbnail to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg' -c copy -map 0 -dn -map 1 -disposition:3 attached_pic 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg (pass -k to keep)
hummblebee
hummblebee

MPV was displaying them correctly for me. I assume the issue is with your player.

I tried playing it with MPV and you were right! Text is displayed normally but I also tried on my Windows machine with VLC and it's broken too:

Screenshot 2021-11-11 231256

Tried Windows' native Videos application and it wouldn't even load the embedded subtitle!

Any ideas?

Activity icon
issue

hummblebee issue comment yt-dlp/yt-dlp

hummblebee
hummblebee

[YouTube] Some subtitles end up containing unwanted characters (\h or &nbsp)

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.11.10.1. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • 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

Subtitles contain unwanted wrong/unwanted characters (specifically \h repeating at the end of every line) for these two YouTube videos here and here (I'm guessing the whole playlist affected)

I have attached the log below, showing my config flags but I also tried with these flags removed: '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs' still the same result, only now subtitle is in .vtt format and instead of \hs I get &nbsps !

Excerpt from the srt:

1
00:00:02,477 --> 00:00:06,000
[Rody] Hi I'm Rody Davis, a Developer\h
Advocate for Material Design.

2
00:00:06,000 --> 00:00:09,520
[Ivy] And I'm Ivy Knight, a Designer\h
Advocate for Material Design.

3
00:00:09,520 --> 00:00:13,120
[Rody] Our team focuses on helping\h
the community build beautifully\h\h

And excerpt from the vtt:

WEBVTT
Kind: captions
Language: en

00:00:02.477 --> 00:00:06.000
[Rody] Hi I'm Rody Davis, a Developer&nbsp;
Advocate for Material Design.

00:00:06.000 --> 00:00:09.520
[Ivy] And I'm Ivy Knight, a Designer&nbsp;
Advocate for Material Design.

00:00:09.520 --> 00:00:13.120
[Rody] Our team focuses on helping&nbsp;
the community build beautifully&nbsp;&nbsp;

Verbose log

❯ yt-dlp -Uv https://www.youtube.com/watch\?v\=clDuqcKgNBQ\&list\=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY\&index\=8
[debug] Command-line config: ['-Uv', 'https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8']
[debug] User config file: /home/humblebee/.config/yt-dlp/config
[debug] User config: ['--proxy', '127.0.0.1:3128', '-f', 'bestvideo+bestaudio/best', '-S', 'codec:avc:m4a,fps', '--geo-bypass', '--downloader', 'aria2c', '--downloader', 'dash,m3u8:native', '--throttled-rate', '100K', '--concurrent-fragments', '8', '--embed-metadata', '--embed-thumbnail', '--embed-subs', '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs', '--convert-thumbnails', 'jpg', '--merge-output-format', 'mp4', '--windows-filenames', '--console-title', '--no-playlist', '--output', '%(title)s.%(ext)s', '--paths', '~/Downloads/YouTube/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.11.10.1 (zip)
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.13.0-21-generic-x86_64-with-glibc2.34
[debug] exe versions: ffmpeg N-104442-g783935de18 (setts), ffprobe N-104442-g783935de18, rtmpdump 2.4
[debug] Optional libraries: keyring, sqlite
[debug] Proxy map: {'http': '127.0.0.1:3128', 'https': '127.0.0.1:3128'}
yt-dlp is up to date (2021.11.10.1)
[debug] [youtube:tab] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8
[youtube:tab] Downloading just video clDuqcKgNBQ because of --no-playlist
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ
[youtube] clDuqcKgNBQ: Downloading webpage
[youtube] clDuqcKgNBQ: Downloading android player API JSON
[debug] Sort order given by user: codec:avc:m4a, fps
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, vcodec:avc(7), acodec:m4a(8), fps, quality, res, hdr:12(7), source, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[info] clDuqcKgNBQ: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] Invoking downloader on "https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --header 'Cookie: CONSENT=YES+cb.20210328-17-p0.en+FX+686; GPS=1; YSC=e3D78uGv0Uo; VISITOR_INFO1_LIVE=gBdR8U0JoEs' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt.part' --auto-file-renaming=false -- 'https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt'
[aria2c] Downloaded 23675 bytes                                                                                                                                        
[download] 100% of 23.12KiB in 00:01
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt' -f srt 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp" to jpg
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp' -bsf:v mjpeg2jpeg 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp (pass -k to keep)
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 67250377 bytes1.0MiB]                                                                                                                              
[download] 100% of 64.13MiB in 00:49
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 17161914 bytes0.9MiB]                                                                                                                              
[download] 100% of 16.37MiB in 00:17
[Merger] Merging formats into "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4 (pass -k to keep)
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a (pass -k to keep)
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedSubtitle] Embedding subtitles in "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt' -c copy -map 0 -dn -map -0:s -map -0:d -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt (pass -k to keep)
[Metadata] Adding metadata to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -map 0 -dn -c copy -metadata 'title=Material You & Figma: Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021)' -metadata date=20211110 -metadata 'description=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'synopsis=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'purl=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata 'comment=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata artist=Figma 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedThumbnail] ffmpeg: Adding thumbnail to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg' -c copy -map 0 -dn -map 1 -disposition:3 attached_pic 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg (pass -k to keep)
hummblebee
hummblebee

I know they are part of the subtitle, but I also know that they shouldn't end up on the screen!

Screenshot 2021-11-11 at 13-26-36 Material You Figma Bringing Dynamic Color brand together - Rody Davis, Ivy Knight (Schema

Screenshot from 2021-11-11 13-26-16

I was wondering if we could sanitize the subtitles and control characters such as new line are actually inserted as new lines?!

Activity icon
issue

hummblebee issue yt-dlp/yt-dlp

hummblebee
hummblebee

[YouTube] Some subtitles end up containing unwanted characters (\h or &nbsp)

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.11.10.1. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • 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

Subtitles contain unwanted wrong/unwanted characters (specifically \h repeating at the end of every line) for these two YouTube videos here and here (I'm guessing the whole playlist affected)

I have attached the log below, showing my config flags but I also tried with these flags disabled: '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs' still the same result, only now subtitle is in .vtt format and instead of \hs I get &nbsps !

The original .vtt subtitle and the converted .srt files are also attached in this zip file: Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.zip…

Verbose log

❯ yt-dlp -Uv https://www.youtube.com/watch\?v\=clDuqcKgNBQ\&list\=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY\&index\=8
[debug] Command-line config: ['-Uv', 'https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8']
[debug] User config file: /home/humblebee/.config/yt-dlp/config
[debug] User config: ['--proxy', '127.0.0.1:3128', '-f', 'bestvideo+bestaudio/best', '-S', 'codec:avc:m4a,fps', '--geo-bypass', '--downloader', 'aria2c', '--downloader', 'dash,m3u8:native', '--throttled-rate', '100K', '--concurrent-fragments', '8', '--embed-metadata', '--embed-thumbnail', '--embed-subs', '--sub-langs', 'en.*', '--sub-format', 'srt/best', '--convert-subs', 'srt', '--no-write-auto-subs', '--convert-thumbnails', 'jpg', '--merge-output-format', 'mp4', '--windows-filenames', '--console-title', '--no-playlist', '--output', '%(title)s.%(ext)s', '--paths', '~/Downloads/YouTube/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.11.10.1 (zip)
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.13.0-21-generic-x86_64-with-glibc2.34
[debug] exe versions: ffmpeg N-104442-g783935de18 (setts), ffprobe N-104442-g783935de18, rtmpdump 2.4
[debug] Optional libraries: keyring, sqlite
[debug] Proxy map: {'http': '127.0.0.1:3128', 'https': '127.0.0.1:3128'}
yt-dlp is up to date (2021.11.10.1)
[debug] [youtube:tab] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ&list=PLXDU_eVOJTx4vCcmQ5aqU78pyGCOK_tqY&index=8
[youtube:tab] Downloading just video clDuqcKgNBQ because of --no-playlist
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=clDuqcKgNBQ
[youtube] clDuqcKgNBQ: Downloading webpage
[youtube] clDuqcKgNBQ: Downloading android player API JSON
[debug] Sort order given by user: codec:avc:m4a, fps
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, vcodec:avc(7), acodec:m4a(8), fps, quality, res, hdr:12(7), source, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[info] clDuqcKgNBQ: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] Invoking downloader on "https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --header 'Cookie: CONSENT=YES+cb.20210328-17-p0.en+FX+686; GPS=1; YSC=e3D78uGv0Uo; VISITOR_INFO1_LIVE=gBdR8U0JoEs' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt.part' --auto-file-renaming=false -- 'https://www.youtube.com/api/timedtext?v=clDuqcKgNBQ&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xftt%2Cxctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1636616134&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=3B538D168F302BE42119A23A669BC979C509E528.01729D67AFE570D07945D40B82CA9F8214CF3C47&key=yt8&lang=en&fmt=vtt'
[aria2c] Downloaded 23675 bytes                                                                                                                                        
[download] 100% of 23.12KiB in 00:01
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt' -f srt 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp" to jpg
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp' -bsf:v mjpeg2jpeg 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).webp (pass -k to keep)
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=137&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=video%2Fmp4&gir=yes&clen=67250377&dur=1060.325&lmt=1633623726717992&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6316224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJWAVx8g5shabW1t1kC68EU4e1iEV9oJw7Sz4s-uz_BsAiEA7MfTJ8b03WKKN3eTQHMDEPMuXqcmWUeVQOJEFrNZViI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 67250377 bytes1.0MiB]                                                                                                                              
[download] 100% of 64.13MiB in 00:49
[debug] Invoking downloader on "https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D"
[download] Destination: /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.115 Safari/537.36' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --all-proxy 127.0.0.1:3128 --check-certificate=true --remote-time=true --dir /home/humblebee/Downloads/YouTube/ --out './Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a.part' --auto-file-renaming=false -- 'https://r2---sn-o097znsk.googlevideo.com/videoplayback?expire=1636612536&ei=WGWMYeulLZ-OsfIPp9yz2Aw&ip=156.146.54.54&id=o-AO1s-uj_GWBguCWv1XxOqXyudy2rWLLY0f6OCb8NTuqr&itag=140&source=youtube&requiressl=yes&mh=FN&mm=31%2C26&mn=sn-o097znsk%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=2&pl=24&initcwndbps=2181250&vprv=1&mime=audio%2Fmp4&gir=yes&clen=17161914&dur=1060.385&lmt=1633623801126324&mt=1636590537&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=6311224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgLigKhf3ANonZqU-6Mh3LaucfhrtTIAuGDa893EzcREoCIF2Qy4QQUU20A7BvyvkVXHbJVvVTGhscpJB9o4VfutFJ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJWJrwx78Sq6BgzQ-75Q6S8UorfxRAyYmV18RB9EhF-VAiEAglEjXaly3oOn_wSN1-hbFPti0dE5AQSKgBUv_5_8iWc%3D'
[aria2c] Downloaded 17161914 bytes0.9MiB]                                                                                                                              
[download] 100% of 16.37MiB in 00:17
[Merger] Merging formats into "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f137.mp4 (pass -k to keep)
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).f140.m4a (pass -k to keep)
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedSubtitle] Embedding subtitles in "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt' -c copy -map 0 -dn -map -0:s -map -0:d -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).en.srt (pass -k to keep)
[Metadata] Adding metadata to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -map 0 -dn -c copy -metadata 'title=Material You & Figma: Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021)' -metadata date=20211110 -metadata 'description=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'synopsis=Material You is enabling a new level of individuality across interfaces. But how does dynamic color interact with the distinct brand expression in your design system? In this session, Rody Davis (Developer Advocate) and Ivy Knight (Designer Advocate) dive into the NEW Figma plugin for generating dynamic color schemes and see those changes reflected throughout your app'"'"'s UI.

Schema is an online conference about design systems by Figma. For more info, check out https://schema.figma.com/

#figma #schema #schema2021 #design #ProductDesign #FigmaDesign #DesignSystems #MaterialYou #Google #GoogleDesign' -metadata 'purl=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata 'comment=https://www.youtube.com/watch?v=clDuqcKgNBQ' -metadata artist=Figma 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4'
[EmbedThumbnail] ffmpeg: Adding thumbnail to "/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).mp4' -i 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg' -c copy -map 0 -dn -map 1 -disposition:3 attached_pic 'file:/home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).temp.mp4'
Deleting original file /home/humblebee/Downloads/YouTube/Material You & Figma - Bringing Dynamic Color & brand together - Rody Davis, Ivy Knight (Schema 2021).jpg (pass -k to keep)
Oct
31
4 weeks ago
Activity icon
issue

hummblebee issue yt-dlp/yt-dlp

hummblebee
hummblebee

How do I set yt-dlp to only download English subs?

Checklist

Question

How do I set yt-dlp to download only the English (CC) subtitles?

I'm trying to download a couple of videos and --list-subs gives me the following for one:

Available subtitles for SMOhl9RK0BA:
Language       Name                   Formats
en-j3PyPqV-e1s English - CC (English) vtt, ttml, srv3, srv2, srv1, json3

While the other has this naming pattern:

Available subtitles for 7Mf2175h3RQ:
Language Name                    Formats
zh-CN    Chinese (China)         vtt, ttml, srv3, srv2, srv1, json3
en-US    English (United States) vtt, ttml, srv3, srv2, srv1, json3
fr-FR    French (France)         vtt, ttml, srv3, srv2, srv1, json3
id       Indonesian              vtt, ttml, srv3, srv2, srv1, json3
ja       Japanese                vtt, ttml, srv3, srv2, srv1, json3
ko       Korean                  vtt, ttml, srv3, srv2, srv1, json3
pt-BR    Portuguese (Brazil)     vtt, ttml, srv3, srv2, srv1, json3
es-419   Spanish (Latin America) vtt, ttml, srv3, srv2, srv1, json3

I tried a Regex generator and it gave me this expression /en-\S+/gm to match en- since apparently only the en- part is only repeated in English subtitles, but it's not working?!

What am I doing wrong?

Activity icon
issue

hummblebee issue comment yt-dlp/yt-dlp

hummblebee
hummblebee

How do I set yt-dlp to only download English subs?

Checklist

Question

How do I set yt-dlp to download only the English (CC) subtitles?

I'm trying to download a couple of videos and --list-subs gives me the following for one:

Available subtitles for SMOhl9RK0BA:
Language       Name                   Formats
en-j3PyPqV-e1s English - CC (English) vtt, ttml, srv3, srv2, srv1, json3

While the other has this naming pattern:

Available subtitles for 7Mf2175h3RQ:
Language Name                    Formats
zh-CN    Chinese (China)         vtt, ttml, srv3, srv2, srv1, json3
en-US    English (United States) vtt, ttml, srv3, srv2, srv1, json3
fr-FR    French (France)         vtt, ttml, srv3, srv2, srv1, json3
id       Indonesian              vtt, ttml, srv3, srv2, srv1, json3
ja       Japanese                vtt, ttml, srv3, srv2, srv1, json3
ko       Korean                  vtt, ttml, srv3, srv2, srv1, json3
pt-BR    Portuguese (Brazil)     vtt, ttml, srv3, srv2, srv1, json3
es-419   Spanish (Latin America) vtt, ttml, srv3, srv2, srv1, json3

I tried a Regex generator and it gave me this expression /en-\S+/gm to match en- since apparently only the en- part is only repeated in English subtitles, but it's not working?!

What am I doing wrong?

hummblebee
hummblebee

Apologies! Looks like my shell zsh had problems giving me zsh: no matches found: en.* and wrapping the en.* in quotes resolved the issue! I'd appreciate it if README was updated to reflect this.

Thanks for the great work here ;)

Activity icon
issue

hummblebee issue yt-dlp/yt-dlp

hummblebee
hummblebee

How do I set yt-dlp to only download English subs?

Checklist

Question

How do I set yt-dlp to download only the English (CC) subtitles?

I'm trying to download a couple of videos and --list-subs gives me the following for one:

Available subtitles for SMOhl9RK0BA:
Language       Name                   Formats
en-j3PyPqV-e1s English - CC (English) vtt, ttml, srv3, srv2, srv1, json3

While the other has this naming pattern:

Available subtitles for 7Mf2175h3RQ:
Language Name                    Formats
zh-CN    Chinese (China)         vtt, ttml, srv3, srv2, srv1, json3
en-US    English (United States) vtt, ttml, srv3, srv2, srv1, json3
fr-FR    French (France)         vtt, ttml, srv3, srv2, srv1, json3
id       Indonesian              vtt, ttml, srv3, srv2, srv1, json3
ja       Japanese                vtt, ttml, srv3, srv2, srv1, json3
ko       Korean                  vtt, ttml, srv3, srv2, srv1, json3
pt-BR    Portuguese (Brazil)     vtt, ttml, srv3, srv2, srv1, json3
es-419   Spanish (Latin America) vtt, ttml, srv3, srv2, srv1, json3

I tried a Regex generator and it gave me this expression /en-\S+/gm to match en- since apparently only the en- part is only repeated in English subtitles, but it's not working?!

What am I doing wrong?

Oct
25
1 month ago
Oct
24
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

Thanks for the new build, installed it and manually changed my OS theme from light to dark and vice versa many times to test the plugin, it seems like only the Light Editor theme is correctly applied and for dark mode the default Dracula IDE theme is applied both as the IDE theme and the Editor theme, while I have selected the above mentioned One Dark Customized!

I even changed the settings once and re-selected my themes and re-applied but to no avail.

Oct
23
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

It's okay, thank you for the build but when I try installing it, I face this error:

Plugin 'Auto Dark Mode' (version '1.6.2-2021.2-patch-1') is not compatible with the current version of the IDE, because it requires build 212 or newer but the current build is AI-203.7717.56

I'm on the latest stable version of Android Studio Arctic Fox.

Oct
22
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

Okay, I tried building the PR you mentioned and I get the following error after ./gradlew :auto-dark-mode:buildPlugin :

FAILURE: Build failed with an exception.

* What went wrong:
Project 'auto-dark-mode' is ambiguous in root project 'auto-dark-mode'. Candidates are: 'auto-dark-mode-base', 'auto-dark-mode-linux', 'auto-dark-mode-linux-gnome', 'auto-dark-mode-macos', 'auto-dark-mode-plugin', 'auto-dark-mode-windows'.

What am I doing wrong?

Oct
21
1 month ago
Oct
18
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

I made some changes in #43 which should in theory fix the issue you are experiencing. Are you comfortable with building the plugin locally to try it out? If not I can provide a build for you.

That's great thank you, I'd appreciate a build if it's okay.

Oct
15
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

Not at all, here you go: Color-Schemes.zip The IntelliJ Light Customized is used for day time, and the One Dark Customized for the night time.

The reason I suggested the above workaround is that I notice a delay like a second or two when changing my IDE themes and it seems like a heavy operation on my machine, I thought maybe this takes a long time and by the time the plugin has changed the the editor theme, our IDE theme just finished applying and hence overriding the editor theme (since IntelliJ always applies the embedded color scheme too for any IDE theme)!

If this is really the case, are there any APIs for changing themes? Like a callback to make sure the IDE theme is completely applied over now, and we can safely proceed to apply the editor color scheme over?

Thank you for your attention!

Oct
14
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

I'm not sure what's the cause of this issue but I have a suggestion maybe if it will help: How about we introduce some delay (like 1 sec) after applying the IDE theme and then apply the Editor theme over? Because it seems like whatever IDE theme is chosen takes precedence over Editor themes!

Oct
10
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

I confirmed and reapplied the settings a few times, actually it's my only option when the wrong theme is applied!

I take back my previous statement, it also happens in new launches not only during sleep. And when I check the plugin settings, the wrong themes are also selected, and I have to select the customized themes again and click Apply.

I'll attach the idea.log, hope it helps. If you need anything else I'd be more than glad to help. idea.log

Oct
6
1 month ago
Activity icon
issue

hummblebee issue comment weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' is applied as both the IDE and the Editor theme!

hummblebee
hummblebee

Not sure about other editor themes, will test and report but I noticed that it only happens while Android Studio was running! Like if I suspend my machine before the sunset with Android Studio running in the background, and wake it up at night (by this time Ubuntu instantly switches to dark mode on login) I face this issue then!

Oct
3
1 month ago
Activity icon
issue

hummblebee issue weisJ/auto-dark-mode

hummblebee
hummblebee

Wrong 'Editor Theme' is applied when switching to dark mode

I have this amazing plugin on Android Studio Arctic Fox (2020.3.1) running on Ubuntu 21.04 (GNOME 3.38.5) and only one minor issue, as the title suggests the wrong editor theme is applied after auto-switching to dark mode!

I have selected "Dracula" as my night 'IDE Theme' and a customized color scheme for my 'Editor Theme' but when switching, 'Dracula' as applied as both the IDE and the Editor theme!

Previous