yt-dlc icon indicating copy to clipboard operation
yt-dlc copied to clipboard

[youtube] Fix XSRF Token regex

Open DonneyF opened this issue 4 years ago • 1 comments


Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • [ ] I am the original author of this code and I am willing to release it under Unlicense
  • [x] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • [x] Bug fix
  • [ ] Improvement
  • [ ] New extractor
  • [ ] New feature

Description of your pull request and other information

This PR fixes failing XSRF Token extraction from the YouTube extractor due to outdated regex. Regex for fix is taken from https://github.com/ytdl-org/youtube-dl/commit/942b8ca3bee90e13e0d058c03248670be1a9991c

DonneyF avatar Jan 10 '21 02:01 DonneyF

#280 already has a patch for this

pukkandan avatar Jan 10 '21 08:01 pukkandan