Skip to content

Commit

Permalink
No default for _parse_json()
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf authored Feb 23, 2024
1 parent 15a71dc commit e281c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def _search_json(self, start_pattern, string, name, video_id, **kwargs):
# (?:[\s\S]) simulates (?(s):.) (eg)
contains_pattern = kwargs.pop('contains_pattern', r'{[\s\S]+}')
fatal = kwargs.pop('fatal', True)
default = kwargs.get('default', NO_DEFAULT)
default = kwargs.pop('default', NO_DEFAULT)

if default is NO_DEFAULT:
default, has_default = {}, False
Expand Down

0 comments on commit e281c05

Please sign in to comment.