A feature-rich command-line audio/video downloader
Make "all-formats" and "best-quality" download the version without specific format too
Ricardo Garcia2bebb386b869
diff --git a/youtube-dl b/youtube-dlindex 64f62e8a13..d2bd0bf5f6 100755--- a/youtube-dl+++ b/youtube-dl@@ -891,21 +891,18 @@ class YoutubeIE(InfoExtractor):})if all_formats:- if quality_index == len(self._available_formats) - 1:+ if quality_index == len(self._available_formats):# None left to getreturnelse:quality_index += 1format_param = self._available_formats[quality_index]- if format_param == None:- returncontinue-returnexcept UnavailableFormatError, err:if best_quality or all_formats:- if quality_index == len(self._available_formats) - 1:+ if quality_index == len(self._available_formats):# I don't ever expect this to happenif not all_formats:self._downloader.trouble(u'ERROR: no known formats available for video')@@ -914,8 +911,6 @@ class YoutubeIE(InfoExtractor):self.report_unavailable_format(video_id, format_param)quality_index += 1format_param = self._available_formats[quality_index]- if format_param == None:- returncontinueelse:self._downloader.trouble('ERROR: format not available for video')