projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4408d99
)
Removes extranous debugging info :)
author
Christopher Neugebauer
<chrisjrn@gmail.com>
Tue, 27 Nov 2012 11:30:07 +0000
(22:30 +1100)
committer
Christopher Neugebauer
<chrisjrn@gmail.com>
Tue, 27 Nov 2012 11:30:07 +0000
(22:30 +1100)
youtube_dl/InfoExtractors.py
patch
|
blob
|
history
diff --git
a/youtube_dl/InfoExtractors.py
b/youtube_dl/InfoExtractors.py
index 447695fda798b39c8c3fdac5bf45fdca36fde007..0829bbb1a84fde9f5f0e6053e720873b3846fe7a 100644
(file)
--- 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
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
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]
format,video_url = turls[-1]
+
+ # Get the format arg from the arg stream
req_format = self._downloader.params.get('format', None)
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
for f,v in turls:
if f == req_format:
format, video_url = f, v