diff options
Diffstat (limited to 'hypervideo_dl/extractor/cmt.py')
-rw-r--r-- | hypervideo_dl/extractor/cmt.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/cmt.py b/hypervideo_dl/extractor/cmt.py index e701fbe..a4ddb91 100644 --- a/hypervideo_dl/extractor/cmt.py +++ b/hypervideo_dl/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) |