aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-11-04 22:21:00 +0100
committerRemita Amine <remitamine@gmail.com>2019-11-04 22:21:00 +0100
commitc69e71733d9619cb1a2bee769b9a381b52901de3 (patch)
treea7a55fcb4faa9ab5d4d1d34a351f35aaadc28d82 /youtube_dl
parent3e4908360417bc29e1446bfa85145193fa2c8462 (diff)
[msn] add support for Vidible and AOL embeds(closes #22195)(closes #22227)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/msn.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/youtube_dl/extractor/msn.py b/youtube_dl/extractor/msn.py
index 0460cf4d5..0c3813dda 100644
--- a/youtube_dl/extractor/msn.py
+++ b/youtube_dl/extractor/msn.py
@@ -41,6 +41,14 @@ class MSNIE(InfoExtractor):
}, {
'url': 'http://www.msn.com/en-ae/entertainment/bollywood/watch-how-salman-khan-reacted-when-asked-if-he-would-apologize-for-his-‘raped-woman’-comment/vi-AAhvzW6',
'only_matching': True,
+ }, {
+ # Vidible(AOL) Embed
+ 'url': 'https://www.msn.com/en-us/video/animals/yellowstone-park-staffers-catch-deer-engaged-in-behavior-they-cant-explain/vi-AAGfdg1',
+ 'only_matching': True,
+ }, {
+ # Dailymotion Embed
+ 'url': 'https://www.msn.com/es-ve/entretenimiento/watch/winston-salem-paire-refait-des-siennes-en-perdant-sa-raquette-au-service/vp-AAG704L',
+ 'only_matching': True,
}]
def _real_extract(self, url):
@@ -61,6 +69,18 @@ class MSNIE(InfoExtractor):
webpage, 'error', group='error'))
raise ExtractorError('%s said: %s' % (self.IE_NAME, error), expected=True)
+ player_name = video.get('playerName')
+ if player_name:
+ provider_id = video.get('providerId')
+ if provider_id:
+ if player_name == 'AOL':
+ return self.url_result(
+ 'aol-video:' + provider_id, 'Aol', provider_id)
+ elif player_name == 'Dailymotion':
+ return self.url_result(
+ 'https://www.dailymotion.com/video/' + provider_id,
+ 'Dailymotion', provider_id)
+
title = video['title']
formats = []