[compoundmedia] Pull request feedback
This commit is contained in:
parent
24b0a51c2d
commit
7cb955cf10
@ -18,16 +18,6 @@ class CompoundMediaIE(InfoExtractor):
|
|||||||
_METADATA_URL_PREFIX = 'https://www.compoundmedia.com/api/video/'
|
_METADATA_URL_PREFIX = 'https://www.compoundmedia.com/api/video/'
|
||||||
_NETRC_MACHINE = 'compoundmedia'
|
_NETRC_MACHINE = 'compoundmedia'
|
||||||
|
|
||||||
# No tests because all videos require authentication
|
|
||||||
# _TEST = {
|
|
||||||
# 'url': 'https://www.compoundmedia.com/shows/tacs/1851',
|
|
||||||
# 'md5': '756a17ea88a671d9faafc6aa406abdb0',
|
|
||||||
# 'info_dict': {
|
|
||||||
# 'id': '1851',
|
|
||||||
# 'title': 'TACS 001 - The First Episode',
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
@ -69,10 +59,5 @@ class CompoundMediaIE(InfoExtractor):
|
|||||||
url = metadata['m3u8']
|
url = metadata['m3u8']
|
||||||
url = url.replace(
|
url = url.replace(
|
||||||
"https://livestreamapis.com/v3", "https://livestream.com")
|
"https://livestreamapis.com/v3", "https://livestream.com")
|
||||||
url = url.replace(".m3u8", "/player")
|
|
||||||
title = metadata['title']
|
|
||||||
|
|
||||||
self.to_screen("Title: " + title)
|
|
||||||
self.to_screen("Requesting " + url)
|
|
||||||
|
|
||||||
return self.url_result(url, 'Livestream')
|
return self.url_result(url, 'Livestream')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user