aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/mtv.py
diff options
context:
space:
mode:
authorSipherdrakon <64430430+Sipherdrakon@users.noreply.github.com>2021-08-29 17:50:58 -0400
committerGitHub <noreply@github.com>2021-08-30 03:20:58 +0530
commit54153fb71bb6846040823abd3ce3ff0eb96e5b44 (patch)
tree2c437a3b1fde43a7f08156817b8265c0e7dad46b /yt_dlp/extractor/mtv.py
parent1dd6d9ca9d9d23525a4f00eb851d6e72ef52c4c7 (diff)
[VH1,TVLand] Fix extractors (#784)
Fixes #745 but not #713 Authored by: Sipherdrakon
Diffstat (limited to 'yt_dlp/extractor/mtv.py')
-rw-r--r--yt_dlp/extractor/mtv.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/extractor/mtv.py b/yt_dlp/extractor/mtv.py
index e446a955b..6b506ad9a 100644
--- a/yt_dlp/extractor/mtv.py
+++ b/yt_dlp/extractor/mtv.py
@@ -313,6 +313,10 @@ class MTVServicesInfoExtractor(InfoExtractor):
video_player = self._extract_child_with_type(ab_testing or main_container, 'VideoPlayer')
mgid = video_player['props']['media']['video']['config']['uri']
+ if not mgid:
+ mgid = self._search_regex(
+ r'"media":{"video":{"config":{"uri":"(mgid:.*?)"', webpage, 'mgid', default=None)
+
return mgid
def _real_extract(self, url):