Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed groups() call on potentially empty regex search object #30676

Merged
merged 2 commits into from
Feb 24, 2022

Conversation

dirkf
Copy link
Contributor

@dirkf dirkf commented Feb 24, 2022

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

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
  • 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?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Within the myspass site extractor, there is a short regex for checking for certain substrings in the video url.
groups() was called on re.search() without first ensuring there were any results to return a regex object. I've added a simple check for this.

Resolves #30521
Closes #30522

@dirkf dirkf merged commit 1f13ccf into ytdl-org:master Feb 24, 2022
github-actions bot added a commit to hellopony/youtube-dl that referenced this pull request Feb 24, 2022
* https://github.com/ytdl-org/youtube-dl:
  [CPAC] Add extractor for Canadian Parliament
  Fixed groups() call on potentially empty regex search object (ytdl-org#30676)
  [aliexpress] Fix test case
  [bigo] add support for bigo.tv (ytdl-org#30635)
gaming-hacker added a commit to gaming-hacker/youtube-dl that referenced this pull request Feb 28, 2022
* commit '6508688e88c83bb811653083db9351702cd39a6a':
  Make default upload_/release_date a compat_str
  Avoid skipping ID when unlisted_hash is numeric
  [Alsace20TV] Add new extractors Alsace20TVIE, Alsace20TVEmbedIE
  [CPAC] Add extractor for Canadian Parliament
  Fixed groups() call on potentially empty regex search object (ytdl-org#30676)
  [aliexpress] Fix test case
  [bigo] add support for bigo.tv (ytdl-org#30635)
dirkf added a commit to dirkf/youtube-dl that referenced this pull request Jun 27, 2022
…g#30676)

* Fixed groups() call on potentially empty regex search object.
- ytdl-org#30521

* minimising lines changed

Co-authored-by: yayorbitgum <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

myspass.de broken
2 participants