From 3768a1fde8f8325590fab19c9502fe1efd03cca0 Mon Sep 17 00:00:00 2001 From: Avichai Cohen Date: Sun, 28 Apr 2019 17:05:27 +0300 Subject: [PATCH] adding test --- youtube_dl/extractor/odnoklassniki.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/youtube_dl/extractor/odnoklassniki.py b/youtube_dl/extractor/odnoklassniki.py index 9d2df2e2d..95d1ec22d 100644 --- a/youtube_dl/extractor/odnoklassniki.py +++ b/youtube_dl/extractor/odnoklassniki.py @@ -94,6 +94,21 @@ class OdnoklassnikiIE(InfoExtractor): 'skip_download': True, }, 'skip': 'Video has not been found', + },{ + # live video + 'url': 'https://www.ok.ru/video/1050794925929', + 'info_dict': { + 'id': '1050794925929', + 'title': 're:^Поиск репертуара [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$', + 'ext': 'mp4', + 'upload_date': u'20190428', + 'uploader': u'(((((КнЯзЬ ))))', + 'uploader_id': u'557343776873', + 'is_live': True + }, + 'params': { + 'skip_download': True, + } }, { 'url': 'http://ok.ru/web-api/video/moviePlayer/20079905452', 'only_matching': True,