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:
d479e34
)
Points the ComedyCentral extractor at a CDN which works with more RTMPDump versions.
author
Christopher Neugebauer
<chrisjrn@gmail.com>
Tue, 27 Nov 2012 10:49:27 +0000
(21:49 +1100)
committer
Christopher Neugebauer
<chrisjrn@gmail.com>
Tue, 27 Nov 2012 10:49:27 +0000
(21:49 +1100)
youtube_dl/InfoExtractors.py
patch
|
blob
|
history
diff --git
a/youtube_dl/InfoExtractors.py
b/youtube_dl/InfoExtractors.py
index 35ba6cc5c9d59752621178f568473f49a7357156..fbdc14e7e19a12255f17fc9b8bbacfc1bf745eac 100644
(file)
--- 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]
# 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,
effTitle = showId + u'-' + epTitle
info = {
'id': shortMediaId,
@@
-2372,7
+2384,7
@@
class ComedyCentralIE(InfoExtractor):
'format': format,
'thumbnail': None,
'description': officialTitle,
'format': format,
'thumbnail': None,
'description': officialTitle,
- 'player_url': playerUrl
+ 'player_url':
None #
playerUrl
}
results.append(info)
}
results.append(info)