1
0
Fork 0

[VH1,TVLand] Fix extractors (#784)

Fixes #745 but not #713
Authored by: Sipherdrakon
This commit is contained in:
Sipherdrakon 2021-08-29 17:50:58 -04:00 committed by GitHub
commit 54153fb71b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 22 deletions

View file

@ -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):