From 049da7cb6cc7d6b47020480fa780907be265b9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 30 Jun 2016 23:04:18 +0700 Subject: [PATCH] [meta] Extend _VALID_URL --- youtube_dl/extractor/meta.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/meta.py b/youtube_dl/extractor/meta.py index 674b8d264..2ca7092e5 100644 --- a/youtube_dl/extractor/meta.py +++ b/youtube_dl/extractor/meta.py @@ -10,8 +10,8 @@ from ..utils import ( class METAIE(InfoExtractor): - _VALID_URL = r'https?://video\.meta\.ua/(?P[0-9]+)' - _TEST = { + _VALID_URL = r'https?://video\.meta\.ua/(?:iframe/)?(?P[0-9]+)' + _TESTS = [{ 'url': 'http://video.meta.ua/5502115.video', 'md5': '71b6f3ee274bef16f1ab410f7f56b476', 'info_dict': { @@ -24,7 +24,10 @@ class METAIE(InfoExtractor): 'upload_date': '20130211', }, 'add_ie': ['Youtube'], - } + }, { + 'url': 'http://video.meta.ua/iframe/5502115', + 'only_matching': True, + }] def _real_extract(self, url): video_id = self._match_id(url)