From 53d26f24069590f47985dfd1eb3f4c90642e676a Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 3 Sep 2020 04:06:30 +0200 Subject: [skip travis] revert automerge for now --- youtube_dl/extractor/unity.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 youtube_dl/extractor/unity.py (limited to 'youtube_dl/extractor/unity.py') diff --git a/youtube_dl/extractor/unity.py b/youtube_dl/extractor/unity.py deleted file mode 100644 index 73daacf29..000000000 --- a/youtube_dl/extractor/unity.py +++ /dev/null @@ -1,32 +0,0 @@ -from __future__ import unicode_literals - -from .common import InfoExtractor -from .youtube import YoutubeIE - - -class UnityIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?unity3d\.com/learn/tutorials/(?:[^/]+/)*(?P[^/?#&]+)' - _TESTS = [{ - 'url': 'https://unity3d.com/learn/tutorials/topics/animation/animate-anything-mecanim', - 'info_dict': { - 'id': 'jWuNtik0C8E', - 'ext': 'mp4', - 'title': 'Live Training 22nd September 2014 - Animate Anything', - 'description': 'md5:e54913114bd45a554c56cdde7669636e', - 'duration': 2893, - 'uploader': 'Unity', - 'uploader_id': 'Unity3D', - 'upload_date': '20140926', - } - }, { - 'url': 'https://unity3d.com/learn/tutorials/projects/2d-ufo-tutorial/following-player-camera?playlist=25844', - 'only_matching': True, - }] - - def _real_extract(self, url): - video_id = self._match_id(url) - webpage = self._download_webpage(url, video_id) - youtube_id = self._search_regex( - r'data-video-id="([_0-9a-zA-Z-]+)"', - webpage, 'youtube ID') - return self.url_result(youtube_id, ie=YoutubeIE.ie_key(), video_id=video_id) -- cgit v1.2.3