浏览代码

Merge remote-tracking branch 'chrisjrn/master'

Philipp Hagemeister 12 年之前
父节点
当前提交
ed7516c69d
共有 1 个文件被更改,包括 12 次插入1 次删除
  1. 12 1
      youtube_dl/InfoExtractors.py

+ 12 - 1
youtube_dl/InfoExtractors.py

@@ -2361,6 +2361,17 @@ class ComedyCentralIE(InfoExtractor):
 			# For now, just pick the highest bitrate
 			# For now, just pick the highest bitrate
 			format,video_url = turls[-1]
 			format,video_url = turls[-1]
 
 
+			# Patch to download from alternative CDN, which does not 
+                        # break on current RTMPDump builds
+            
+
+			broken_cdn = "rtmpe://viacomccstrmfs.fplive.net/viacomccstrm/gsp.comedystor/"
+			better_cdn = "rtmpe://cp10740.edgefcs.net/ondemand/mtvnorigin/gsp.comedystor/"
+            
+			if video_url.startswith(broken_cdn):
+                            video_url = video_url.replace(broken_cdn, better_cdn)
+                    
+
 			effTitle = showId + u'-' + epTitle
 			effTitle = showId + u'-' + epTitle
 			info = {
 			info = {
 				'id': shortMediaId,
 				'id': shortMediaId,
@@ -2372,7 +2383,7 @@ class ComedyCentralIE(InfoExtractor):
 				'format': format,
 				'format': format,
 				'thumbnail': None,
 				'thumbnail': None,
 				'description': officialTitle,
 				'description': officialTitle,
-				'player_url': playerUrl
+				'player_url': None #playerUrl
 			}
 			}
 
 
 			results.append(info)
 			results.append(info)