alistairboyer d06b02cb21
Regex error in youtube for finding function name
I was getting the following regex error:
  youtube_dl.utils.RegexNotFoundError

Looking at the raw JS in jscode it seems that the script is trying to find the "sL" bit: [this obviously changes each time]
...yt.akamaized.net/)||d.set("alr","yes");c&&d.set(b,(0,window.encodeURIComponent)(sL((0,window.decodeURIComponent)(c))));return d};

But it failed to match the original regex (line 1194) because of the additional '(0,window.encodeURIComponent)(' part

This new regex (added on line 1195) fixes the problem and it works for me! 

I find it really hard to force youtube-dl go via the _parse_sig_js function to test. But I have reproduced the error at least four times and confirmed the new regex solves the problem.
2018-11-24 23:54:34 +00:00
..
2018-05-02 07:20:59 +07:00
2018-01-23 22:23:12 +07:00
2018-11-23 00:16:45 +07:00