Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
6 additions and
3 deletions
-
youtube_dl/extractor/meta.py
|
@ -10,8 +10,8 @@ from ..utils import ( |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class METAIE(InfoExtractor): |
|
|
class METAIE(InfoExtractor): |
|
|
_VALID_URL = r'https?://video\.meta\.ua/(?P<id>[0-9]+)' |
|
|
|
|
|
_TEST = { |
|
|
|
|
|
|
|
|
_VALID_URL = r'https?://video\.meta\.ua/(?:iframe/)?(?P<id>[0-9]+)' |
|
|
|
|
|
_TESTS = [{ |
|
|
'url': 'http://video.meta.ua/5502115.video', |
|
|
'url': 'http://video.meta.ua/5502115.video', |
|
|
'md5': '71b6f3ee274bef16f1ab410f7f56b476', |
|
|
'md5': '71b6f3ee274bef16f1ab410f7f56b476', |
|
|
'info_dict': { |
|
|
'info_dict': { |
|
@ -24,7 +24,10 @@ class METAIE(InfoExtractor): |
|
|
'upload_date': '20130211', |
|
|
'upload_date': '20130211', |
|
|
}, |
|
|
}, |
|
|
'add_ie': ['Youtube'], |
|
|
'add_ie': ['Youtube'], |
|
|
} |
|
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
'url': 'http://video.meta.ua/iframe/5502115', |
|
|
|
|
|
'only_matching': True, |
|
|
|
|
|
}] |
|
|
|
|
|
|
|
|
def _real_extract(self, url): |
|
|
def _real_extract(self, url): |
|
|
video_id = self._match_id(url) |
|
|
video_id = self._match_id(url) |
|
|