This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to hotpatch "KeyError: 'QV'" on YT | |
1. The patch just landed 50 minutes ago here: https://github.com/ytdl-org/youtube-dl/commit/ae8ba2c31977b68b75221f80c488c0b12385269c | |
2. Packaged release of youtube-dl is not updated yet, and it is not known when it will be. Meaning that you can't update it via package manager or official website | |
3. Official instruction to patch is quite complicated: https://github.com/ytdl-org/youtube-dl/issues/31530#issuecomment-1435975611 | |
Therefore we will manually cherry-pick the patch... | |
4. Find this file: extractor/youtube.py (mine was in /opt due to homebrew installation) | |
5. Back it up | |
6. Open it in the editor | |
7. Locate the line "jsi = JSInterpreter(jscode)" and comment it out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build v8 x64 on modern Linux | |
# Time to run: about 1.2hrs at 8Gb RAM / 8 cores, Ubuntu 22.04 LTS | |
# This dockerfile is part of Zero Day Engineering training materials on JavaScript engines internals and vulnerability research | |
# https://zerodayengineering.com | |
# @zerodaytraining | |
FROM ubuntu:bionic | |
MAINTAINER contact@zerodayengineering.com | |
RUN apt-get update && apt-get upgrade |