]> jfr.im git - yt-dlp.git/commit - yt_dlp/extractor/youtube.py
[extractor/youtube] Improve description parsing performance (#7315)
authorBerkan Teber <redacted>
Thu, 22 Jun 2023 07:27:54 +0000 (10:27 +0300)
committerGitHub <redacted>
Thu, 22 Jun 2023 07:27:54 +0000 (12:57 +0530)
commit71dc18fa29263a1ff0472c23d81bfc8dd4422d48
tree5f0e2f593b2174c05a92ea6a93e05c07a18e6b47
parent98cb1eda7a4cf67c96078980dbd63e6c06ad7f7c
[extractor/youtube] Improve description parsing performance (#7315)

* The parsing is skipped when not needed
* The regex is improved by simulating atomic groups with lookaheads

Authored by: pukkandan, berkanteber
yt_dlp/extractor/youtube.py