From 3ca3f77f9ce9dd504dc6af4ef605c245c31ff860 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 2 Sep 2020 23:33:41 +0200 Subject: [skip travis] adding automerge support basically copying content of youtube_dl folder to youtube_dlc and excluding the youtube_dl folder when compiling --- youtube_dl/extractor/engadget.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 youtube_dl/extractor/engadget.py (limited to 'youtube_dl/extractor/engadget.py') diff --git a/youtube_dl/extractor/engadget.py b/youtube_dl/extractor/engadget.py new file mode 100644 index 000000000..65635c18b --- /dev/null +++ b/youtube_dl/extractor/engadget.py @@ -0,0 +1,27 @@ +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class EngadgetIE(InfoExtractor): + _VALID_URL = r'https?://(?:www\.)?engadget\.com/video/(?P[^/?#]+)' + + _TESTS = [{ + # video with 5min ID + 'url': 'http://www.engadget.com/video/518153925/', + 'md5': 'c6820d4828a5064447a4d9fc73f312c9', + 'info_dict': { + 'id': '518153925', + 'ext': 'mp4', + 'title': 'Samsung Galaxy Tab Pro 8.4 Review', + }, + 'add_ie': ['FiveMin'], + }, { + # video with vidible ID + 'url': 'https://www.engadget.com/video/57a28462134aa15a39f0421a/', + 'only_matching': True, + }] + + def _real_extract(self, url): + video_id = self._match_id(url) + return self.url_result('aol-video:%s' % video_id) -- cgit v1.2.3