Ver Fonte

Removes extranous debugging info :)

Christopher Neugebauer há 12 anos atrás
pai
commit
d8dddb7c02
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      youtube_dl/InfoExtractors.py

+ 4 - 4
youtube_dl/InfoExtractors.py

@@ -2384,18 +2384,18 @@ class ComedyCentralIE(InfoExtractor):
 			if len(turls) == 0:
 			if len(turls) == 0:
 				self._downloader.trouble(u'\nERROR: unable to download ' + mediaId + ': No videos found')
 				self._downloader.trouble(u'\nERROR: unable to download ' + mediaId + ': No videos found')
 				continue
 				continue
-
-			# For now, just pick the highest bitrate
 			
 			
-			print turls
-
 			if self._downloader.params.get('listformats', None):
 			if self._downloader.params.get('listformats', None):
 			    self._print_formats([i[0] for i in turls])
 			    self._print_formats([i[0] for i in turls])
 		            return
 		            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:
 			for f,v in turls:
 			    if f == req_format:
 			    if f == req_format:
 			      format, video_url = f, v
 			      format, video_url = f, v