From 97338228b8f5d424ca13f8ee59f270cd745cbc57 Mon Sep 17 00:00:00 2001 From: rrooij Date: Sat, 8 Jul 2017 20:34:37 +0200 Subject: [PATCH] [npo] fix live stream id regex NPO Live has a new page with the ID stored somewhere else. The regex for fetching the ID is now updated for the new site. Fixes #13568 --- youtube_dl/extractor/npo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index 5f8b6def1..516b1e941 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -341,7 +341,7 @@ class NPOLiveIE(NPOBaseIE): webpage = self._download_webpage(url, display_id) live_id = self._search_regex( - r'data-prid="([^"]+)"', webpage, 'live id') + [r'media-id="([^"]+)"', r'data-prid="([^"]+)"'], webpage, 'live id') return { '_type': 'url_transparent',