* ext Will be calculated from url if missing
* format A human-readable description of the format
("mp4 container with h264/opus").
* ext Will be calculated from url if missing
* format A human-readable description of the format
("mp4 container with h264/opus").
* width Width of the video, if known
* height Height of the video, if known
* width Width of the video, if known
* height Height of the video, if known
Perform a regex search on the given string, using a single or a list of
patterns returning the first matching group.
In case of failure return a default value or raise a WARNING or a
Perform a regex search on the given string, using a single or a list of
patterns returning the first matching group.
In case of failure return a default value or raise a WARNING or a
"""
if isinstance(pattern, (str, compat_str, compiled_regex_type)):
mobj = re.search(pattern, string, flags)
"""
if isinstance(pattern, (str, compat_str, compiled_regex_type)):
mobj = re.search(pattern, string, flags)
else:
self._downloader.report_warning(u'unable to extract %s; '
u'please report this issue on http://yt-dl.org/bug' % _name)
else:
self._downloader.report_warning(u'unable to extract %s; '
u'please report this issue on http://yt-dl.org/bug' % _name)
def _get_n_results(self, query, n):
"""Get a specified number of results for a query"""
def _get_n_results(self, query, n):
"""Get a specified number of results for a query"""