mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-18 13:20:46 +02:00
Points the ComedyCentral extractor at a CDN which works with more RTMPDump versions.
This commit is contained in:
parent
d479e34043
commit
36a9c0b5ff
@ -2361,6 +2361,18 @@ def _real_extract(self, url):
|
|||||||
# 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
|
||||||
|
|
||||||
|
|
||||||
|
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
|
effTitle = showId + u'-' + epTitle
|
||||||
info = {
|
info = {
|
||||||
'id': shortMediaId,
|
'id': shortMediaId,
|
||||||
@ -2372,7 +2384,7 @@ def _real_extract(self, url):
|
|||||||
'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)
|
||||||
|
Loading…
Reference in New Issue
Block a user