diff options
author | Unknown <blackjack4494@web.de> | 2020-10-09 07:50:22 +0200 |
---|---|---|
committer | Unknown <blackjack4494@web.de> | 2020-10-09 07:50:22 +0200 |
commit | cf7cb9428745dc744129e0ba90c626919fb98f48 (patch) | |
tree | 0611858879cc9ccb6bb82438a95dcc4a7b9ae2b2 /youtube_dlc/extractor/cmt.py | |
parent | b6e0c7d2e3bb17b36a3b6e16fa8fd67092658d6c (diff) |
[mtvn] update mtv network related extractors
Diffstat (limited to 'youtube_dlc/extractor/cmt.py')
-rw-r--r-- | youtube_dlc/extractor/cmt.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/cmt.py b/youtube_dlc/extractor/cmt.py index e701fbeab..a4ddb9160 100644 --- a/youtube_dlc/extractor/cmt.py +++ b/youtube_dlc/extractor/cmt.py @@ -2,6 +2,8 @@ from __future__ import unicode_literals from .mtv import MTVIE +# TODO Remove - Reason: Outdated Site + class CMTIE(MTVIE): IE_NAME = 'cmt.com' @@ -39,7 +41,7 @@ class CMTIE(MTVIE): 'only_matching': True, }] - def _extract_mgid(self, webpage): + def _extract_mgid(self, webpage, url): mgid = self._search_regex( r'MTVN\.VIDEO\.contentUri\s*=\s*([\'"])(?P<mgid>.+?)\1', webpage, 'mgid', group='mgid', default=None) @@ -50,5 +52,5 @@ class CMTIE(MTVIE): def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - mgid = self._extract_mgid(webpage) + mgid = self._extract_mgid(webpage, url) return self.url_result('http://media.mtvnservices.com/embed/%s' % mgid) |