mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-18 19:41:09 -05:00
[YouTube] Support Releases tab
This commit is contained in:
@ -3753,6 +3753,11 @@ def strip_or_none(v, default=None):
|
||||
return v.strip() if isinstance(v, compat_str) else default
|
||||
|
||||
|
||||
def txt_or_none(v, default=None):
|
||||
""" Combine str/strip_or_none, disallow blank value (for traverse_obj) """
|
||||
return default if v is None else (compat_str(v).strip() or default)
|
||||
|
||||
|
||||
def url_or_none(url):
|
||||
if not url or not isinstance(url, compat_str):
|
||||
return None
|
||||
@ -4096,8 +4101,8 @@ def escape_url(url):
|
||||
).geturl()
|
||||
|
||||
|
||||
def parse_qs(url):
|
||||
return compat_parse_qs(compat_urllib_parse.urlparse(url).query)
|
||||
def parse_qs(url, **kwargs):
|
||||
return compat_parse_qs(compat_urllib_parse.urlparse(url).query, **kwargs)
|
||||
|
||||
|
||||
def read_batch_urls(batch_fd):
|
||||
|
Reference in New Issue
Block a user