aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/InfoExtractors.py
diff options
context:
space:
mode:
authorChristopher Neugebauer <chrisjrn@gmail.com>2012-11-27 22:30:07 +1100
committerChristopher Neugebauer <chrisjrn@gmail.com>2012-11-27 22:30:07 +1100
commitd8dddb7c0221959ff1ca4f833c535253e66fe747 (patch)
treea69f52ca8a7049b32d41af45f5f2b00a4ed7abf8 /youtube_dl/InfoExtractors.py
parent4408d996fbf2a50323a65adfeb2aa87e5e70fa24 (diff)
Removes extranous debugging info :)
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rw-r--r--youtube_dl/InfoExtractors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 447695fda..0829bbb1a 100644
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -2384,18 +2384,18 @@ class ComedyCentralIE(InfoExtractor):
if len(turls) == 0:
self._downloader.trouble(u'\nERROR: unable to download ' + mediaId + ': No videos found')
continue
-
- # For now, just pick the highest bitrate
- print turls
-
if self._downloader.params.get('listformats', None):
self._print_formats([i[0] for i in turls])
return
+ # For now, just pick the highest bitrate
format,video_url = turls[-1]
+
+ # Get the format arg from the arg stream
req_format = self._downloader.params.get('format', None)
+ # Select format if we can find one
for f,v in turls:
if f == req_format:
format, video_url = f, v