From 76862a39dabb10a8efa77f4d474baa125c32511d Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 4 Feb 2020 20:35:19 +0100 Subject: [PATCH] Add subtitles test for Viafree --- youtube_dl/extractor/tvplay.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/youtube_dl/extractor/tvplay.py b/youtube_dl/extractor/tvplay.py index dfac70999..add4e6790 100644 --- a/youtube_dl/extractor/tvplay.py +++ b/youtube_dl/extractor/tvplay.py @@ -391,6 +391,33 @@ class ViafreeIE(InfoExtractor): 'skip_download': True, }, 'add_ie': [TVPlayIE.ie_key()], + }, { + # with subtitles + 'url': 'https://www.viafree.se/program/livsstil/varldens-basta-burgare/sasong-2/avsnitt-1', + 'info_dict': { + 'id': '828877', + 'ext': 'mp4', + 'title': 'Världens bästa burgare S02E01', + 'description': '', + 'series': 'Världens bästa burgare', + 'season': 'Säsong 2', + 'season_number': 2, + 'duration': 2580, + 'timestamp': 1491233172, + 'upload_date': '20170403', + 'subtitles': { + 'sv': [{ + 'ext': 'vtt', + }], + 'sv_sdh': [{ + 'ext': 'vtt', + }] + }, + }, + 'params': { + 'skip_download': True, + }, + 'add_ie': [TVPlayIE.ie_key()], }, { # Different og:image URL schema 'url': 'http://www.viafree.se/program/reality/sommaren-med-youtube-stjarnorna/sasong-1/avsnitt-2',