From 5002f0fa1ae394c61218c1d39a15462f596ec494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Fri, 28 Dec 2018 13:17:37 +0100 Subject: [PATCH] Rewrite remix.aka to remix-aka for VRT.nu --- youtube_dl/extractor/canvas.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/canvas.py b/youtube_dl/extractor/canvas.py index 174fd9e2b..44cd093b0 100644 --- a/youtube_dl/extractor/canvas.py +++ b/youtube_dl/extractor/canvas.py @@ -50,6 +50,10 @@ class CanvasIE(InfoExtractor): formats = [] for target in data['targetUrls']: format_url, format_type = target.get('url'), target.get('type') + + # VRT seems to be providing invalid URLS + format_url = format_url.replace('https://remix.aka', 'https://remix-aka') + if not format_url or not format_type: continue if format_type == 'HLS':