From 4a0b588f3e6e9f42da94b70243d068a9193cf436 Mon Sep 17 00:00:00 2001 From: Jan Hoek Date: Wed, 29 Mar 2017 20:40:12 +0200 Subject: [PATCH] Using regexes again instead of xml parser --- youtube_dl/extractor/npo.py | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index 9084bbff3..6573095dd 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -1,7 +1,6 @@ from __future__ import unicode_literals import re -import xml.etree.ElementTree as ET from .common import InfoExtractor from ..compat import ( @@ -481,6 +480,8 @@ class HetKlokhuisIE(NPODataMidEmbedIE): class NPORecentsIE(NPOIE): IE_Name = 'npo:recents' + npo12_regex = r"""
\s*