From b0da63e30abc5c2f9f5306153ead982ab1ef0c16 Mon Sep 17 00:00:00 2001 From: Oneboy1979 Date: Sun, 24 Feb 2019 16:37:24 +0100 Subject: [PATCH] [servus] fix tests --- youtube_dl/extractor/servus.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/youtube_dl/extractor/servus.py b/youtube_dl/extractor/servus.py index 7a6d20c93..00c1a5abf 100644 --- a/youtube_dl/extractor/servus.py +++ b/youtube_dl/extractor/servus.py @@ -6,17 +6,17 @@ from .common import InfoExtractor class ServusIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?servus\.com/tv/videos/(?Paa-\w+|\d+-\d+)' - _TESTS = [{ + _TEST = { 'url': 'https://www.servus.com/tv/videos/aa-1t6vbu5pw1w12/', - 'md5': '046dee641cda1c4cabe13baef3be2c1c', + 'md5': '3e1dd16775aa8d5cbef23628cfffc1f4', 'info_dict': { - 'id': 'aa-1t6vbu5pw1w12', + 'id': 'AA-1T6VBU5PW1W12', 'ext': 'mp4', - 'title': 'Die Grünen aus Volkssicht', - 'description': 'md5:052b5da1cb2cd7d562ef1f19be5a5cba', - 'thumbnail': r're:^https?://.*\.jpg$', + 'title': 'Die Grünen aus Sicht des Volkes - Servus TV', + 'description': 'md5:1247204d85783afe3682644398ff2ec4', + 'thumbnail': r're:^https?://.*1080$', } - }] + } def _real_extract(self, url): video_id = self._match_id(url).upper()