[youtube] cleanup, speed up age-gated extraction, fix videos with js-like syntax

9 jobs for master in 29 minutes and 38 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Test
passed #2595
playwright-tests-core

00:00:44

passed #2596
playwright-tests-download

00:00:13

passed #2590
py3.6-core

00:00:53

passed #2591
py3.7-core

00:00:51

passed #2592
py3.8-core

00:00:53

passed #2593
py3.9-core

00:00:53

failed #2594
allowed to fail
py3.9-download

00:29:35

passed #2588
pypy3.6-core

00:02:14

passed #2589
pypy3.7-core

00:02:14

 
Name Stage Failure
failed
py3.9-download Test
[download] Downloading video 58 of 58
[download] Finished downloading playlist: ТЕД на русском

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: test_YandexMusicPlaylist (test.test_download.TestDownload):
----------------------------------------------------------------------
Traceb
Job's log exceeded limit of 4194304 bytes.