aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-05-30 17:50:56 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:28:10 +0100
commit896a6ea9e2a695f3a2aa116ce6d561071f3c61cd (patch)
tree65494c5392be7285519f6075526f79968867881f
parent7031008c98f9dfe0ea592529fe17be88ba9c48d7 (diff)
downloadyoutube-dl-896a6ea9e2a695f3a2aa116ce6d561071f3c61cd.tar.xz
Fix for all-formats exception by Valentin Hilbig
-rwxr-xr-xyoutube-dl4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube-dl b/youtube-dl
index b21e63b05..514f71aa6 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -927,17 +927,18 @@ class YoutubeIE(InfoExtractor):
})
if all_formats:
+ quality_index += 1
if quality_index == len(self._available_formats):
# None left to get
return
else:
- quality_index += 1
format_param = self._available_formats[quality_index]
continue
return
except UnavailableFormatError, err:
if best_quality or all_formats:
+ quality_index += 1
if quality_index == len(self._available_formats):
# I don't ever expect this to happen
if not all_formats:
@@ -945,7 +946,6 @@ class YoutubeIE(InfoExtractor):
return
else:
self.report_unavailable_format(video_id, format_param)
- quality_index += 1
format_param = self._available_formats[quality_index]
continue
else: