From 36a9c0b5ffa857baeb8a97651ec223bd4b0d1a6d Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Tue, 27 Nov 2012 21:49:27 +1100 Subject: [PATCH 1/2] Points the ComedyCentral extractor at a CDN which works with more RTMPDump versions. --- youtube_dl/InfoExtractors.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 35ba6cc5c..fbdc14e7e 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -2361,6 +2361,18 @@ class ComedyCentralIE(InfoExtractor): # For now, just pick the highest bitrate format,video_url = turls[-1] + # Patch to download from alternative CDN, which does not + # break on current RTMPDump builds + + + print "HELLO, WORLD!", video_url + 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 info = { 'id': shortMediaId, @@ -2372,7 +2384,7 @@ class ComedyCentralIE(InfoExtractor): 'format': format, 'thumbnail': None, 'description': officialTitle, - 'player_url': playerUrl + 'player_url': None #playerUrl } results.append(info) From 89af8e9d32f550bdf00da9eab3288ad1e104d3b3 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Tue, 27 Nov 2012 21:51:30 +1100 Subject: [PATCH 2/2] Removes extraneous debug message. --- youtube_dl/InfoExtractors.py | 1 - 1 file changed, 1 deletion(-) diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index fbdc14e7e..3cdce3b25 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -2365,7 +2365,6 @@ class ComedyCentralIE(InfoExtractor): # break on current RTMPDump builds - print "HELLO, WORLD!", video_url broken_cdn = "rtmpe://viacomccstrmfs.fplive.net/viacomccstrm/gsp.comedystor/" better_cdn = "rtmpe://cp10740.edgefcs.net/ondemand/mtvnorigin/gsp.comedystor/"