瀏覽代碼

Switch around act and episode title (makes -t nicer)

Philipp Hagemeister 14 年之前
父節點
當前提交
46c8c43266
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      youtube-dl

+ 5 - 5
youtube-dl

@@ -3103,7 +3103,7 @@ class ComedyCentralIE(InfoExtractor):
 			except (urllib2.URLError, httplib.HTTPException, socket.error), err:
 			except (urllib2.URLError, httplib.HTTPException, socket.error), err:
 				self._downloader.trouble(u'ERROR: unable to download webpage: %s' % unicode(err))
 				self._downloader.trouble(u'ERROR: unable to download webpage: %s' % unicode(err))
 				return
 				return
-	
+
 			cdoc = xml.etree.ElementTree.fromstring(configXml)
 			cdoc = xml.etree.ElementTree.fromstring(configXml)
 			turls = []
 			turls = []
 			for rendition in cdoc.findall('.//rendition'):
 			for rendition in cdoc.findall('.//rendition'):
@@ -3116,19 +3116,19 @@ class ComedyCentralIE(InfoExtractor):
 			self._downloader.increment_downloads()
 			self._downloader.increment_downloads()
 			actTitle = 'act' + str(actNum+1)
 			actTitle = 'act' + str(actNum+1)
 			info = {
 			info = {
-				'id': epTitle,
+				'id': actTitle,
 				'url': video_url,
 				'url': video_url,
 				'uploader': 'NA',
 				'uploader': 'NA',
 				'upload_date': 'NA',
 				'upload_date': 'NA',
-				'title': actTitle,
-				'stitle': self._simplify_title(actTitle),
+				'title': epTitle,
+				'stitle': self._simplify_title(epTitle),
 				'ext': 'mp4',
 				'ext': 'mp4',
 				'format': format,
 				'format': format,
 				'thumbnail': None,
 				'thumbnail': None,
 				'description': 'TODO: Not yet supported',
 				'description': 'TODO: Not yet supported',
 				'player_url': player_url
 				'player_url': player_url
 			}
 			}
-	
+
 			try:
 			try:
 				self._downloader.process_info(info)
 				self._downloader.process_info(info)
 			except UnavailableVideoError, err:
 			except UnavailableVideoError, err: