aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2015-04-27 16:44:58 +0500
committerSergey M. <dstftw@gmail.com>2015-04-27 16:44:58 +0500
commit40b96352c99953aec9272574729077c06c235747 (patch)
tree692f020f9f8b030d1fc008c59a92bc94138023e3 /youtube_dl/YoutubeDL.py
parent189ba90996d810ea00b165d20d320869efe14518 (diff)
parent0d1bd5d62f29cc1a02c4dd5cea55fe018f9fea97 (diff)
downloadyoutube-dl-40b96352c99953aec9272574729077c06c235747.tar.xz
Merge pull request #5523 from jaimeMF/remove-format-limit
Remove the --max-quality option
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 0fdcf1b0b..977141881 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -64,7 +64,6 @@ from .utils import (
sanitize_path,
std_headers,
subtitles_filename,
- takewhile_inclusive,
UnavailableVideoError,
url_basename,
version_tuple,
@@ -135,7 +134,6 @@ class YoutubeDL(object):
(or video) as a single JSON line.
simulate: Do not download the video files.
format: Video format code. See options.py for more information.
- format_limit: Highest quality format to try.
outtmpl: Template for output names.
restrictfilenames: Do not allow "&" and spaces in file names
ignoreerrors: Do not stop on download errors.
@@ -1068,12 +1066,6 @@ class YoutubeDL(object):
full_format_info.update(format)
format['http_headers'] = self._calc_headers(full_format_info)
- format_limit = self.params.get('format_limit', None)
- if format_limit:
- formats = list(takewhile_inclusive(
- lambda f: f['format_id'] != format_limit, formats
- ))
-
# TODO Central sorting goes here
if formats[0] is not info_dict: