mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-30 19:02:55 +01:00
comedycentral: include player URL (still broken)
This commit is contained in:
parent
c8e30044b8
commit
0f862ea18c
10
youtube-dl
10
youtube-dl
@ -3071,15 +3071,17 @@ class ComedyCentralIE(InfoExtractor):
|
|||||||
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
|
||||||
|
|
||||||
mMovieParams = re.findall('<param name="movie" value="http://media.mtvnservices.com/(.*?:episode:.*?:)(.*?)"/>', html)
|
mMovieParams = re.findall('<param name="movie" value="(http://media.mtvnservices.com/(.*?:episode:.*?:)(.*?))"/>', html)
|
||||||
if len(mMovieParams) == 0:
|
if len(mMovieParams) == 0:
|
||||||
self._downloader.trouble(u'ERROR: unable to find Flash URL in webpage ' + url)
|
self._downloader.trouble(u'ERROR: unable to find Flash URL in webpage ' + url)
|
||||||
return
|
return
|
||||||
ACT_COUNT = 4
|
ACT_COUNT = 4
|
||||||
mediaNum = int(mMovieParams[0][1]) - ACT_COUNT
|
player_url = mMovieParams[0][0]
|
||||||
|
mediaNum = int(mMovieParams[0][2]) - ACT_COUNT
|
||||||
|
movieId = mMovieParams[0][1]
|
||||||
|
|
||||||
for actNum in range(ACT_COUNT):
|
for actNum in range(ACT_COUNT):
|
||||||
mediaId = mMovieParams[0][0] + str(mediaNum + actNum)
|
mediaId = movieId + str(mediaNum + actNum)
|
||||||
configUrl = ('http://www.comedycentral.com/global/feeds/entertainment/media/mediaGenEntertainment.jhtml?' +
|
configUrl = ('http://www.comedycentral.com/global/feeds/entertainment/media/mediaGenEntertainment.jhtml?' +
|
||||||
urllib.urlencode({'uri': mediaId}))
|
urllib.urlencode({'uri': mediaId}))
|
||||||
configReq = urllib2.Request(configUrl)
|
configReq = urllib2.Request(configUrl)
|
||||||
@ -3112,7 +3114,7 @@ class ComedyCentralIE(InfoExtractor):
|
|||||||
'format': format,
|
'format': format,
|
||||||
'thumbnail': None,
|
'thumbnail': None,
|
||||||
'description': 'TODO: Not yet supported',
|
'description': 'TODO: Not yet supported',
|
||||||
'player_url': None
|
'player_url': player_url
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user