-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix KeyError: 'assets', and minor refactor * Fixed tests. Changes to YT broke a single test, and updating the mock had cascading effects on other tests. This updates the tests to reflect a more recent YT page, and introduces os-agnostic file paths for testing on windows. * Fixed flake8 issues.
- Loading branch information
Showing
8 changed files
with
59 additions
and
97 deletions.
There are no files selected for viewing
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
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
Binary file not shown.
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
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
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
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
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
eec6f64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I receive this error message now:
Traceback (most recent call last):
File "C:\x\YoutubeDownloader\main.py", line 5, in
yt = YouTube(link)
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\pytube_main_.py", line 92, in init
self.descramble()
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\pytube_main_.py", line 140, in descramble
apply_signature(self.player_config_args, fmt, self.js)
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\pytube\extract.py", line 209, in apply_signature
cipher = Cipher(js=js)
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\pytube\cipher.py", line 30, in init
self.transform_plan: List[str] = get_transform_plan(js)
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\pytube\cipher.py", line 149, in get_transform_plan
return regex_search(pattern, js, group=1).split(";")
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\pytube\helpers.py", line 34, in regex_search
raise RegexMatchError(caller="regex_search", pattern=pattern)
pytube.exceptions.RegexMatchError: regex_search: could not find match for Rda=function(\w){[a-z=.(")];(.);(?:.+)}