diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-18 10:04:47 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-18 10:04:47 -0500 |
commit | cabfc066cb929d5496d984a0fde895a059dc0648 (patch) | |
tree | cc0ab44a1c6113c6116fa15e809204f98cee1e73 /youtube_dl/extractor/unity.py | |
parent | d98d94032e3b45d4a1dc21404e2a520964aadedd (diff) | |
download | hypervideo-pre-cabfc066cb929d5496d984a0fde895a059dc0648.tar.lz hypervideo-pre-cabfc066cb929d5496d984a0fde895a059dc0648.tar.xz hypervideo-pre-cabfc066cb929d5496d984a0fde895a059dc0648.zip |
update from upstream
Diffstat (limited to 'youtube_dl/extractor/unity.py')
-rw-r--r-- | youtube_dl/extractor/unity.py | 32 |
1 files changed, 0 insertions, 32 deletions
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<id>[^/?#&]+)' - _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) |