From 24b0a51c2da24c58680edff188d5f1a44c3ac9a7 Mon Sep 17 00:00:00 2001 From: Kevin G Date: Tue, 1 Jan 2019 14:36:57 -0800 Subject: [PATCH] [compoundmedia] Use self.url_result instead of directly using IE --- youtube_dl/extractor/compoundmedia.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/youtube_dl/extractor/compoundmedia.py b/youtube_dl/extractor/compoundmedia.py index 3e33dedd1..0dcba21bf 100644 --- a/youtube_dl/extractor/compoundmedia.py +++ b/youtube_dl/extractor/compoundmedia.py @@ -11,8 +11,6 @@ from ..utils import ( urlencode_postdata, ) -from .livestream import LivestreamIE - class CompoundMediaIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?compoundmedia\.com/shows/[^/]+/(?P[0-9]+)' @@ -72,16 +70,9 @@ class CompoundMediaIE(InfoExtractor): url = url.replace( "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) - livestreamie = LivestreamIE() - livestreamie.set_downloader(self._downloader) - livestreamdata = livestreamie._real_extract(url) - livestreamdata['id'] = video_id - livestreamdata['title'] = title - - return livestreamdata + return self.url_result(url, 'Livestream')