]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/filmweb.py
[ie/generic] Add `key_query` extractor-arg
[yt-dlp.git] / yt_dlp / extractor / filmweb.py
index 56000bc5ba941dfe444fd4c29cbb3b6dc8eff0a4..6dde6c3f0087720d34c779392886754f3aa760b9 100644 (file)
@@ -1,7 +1,3 @@
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 
 
@@ -18,11 +14,11 @@ class FilmwebIE(InfoExtractor):
             'timestamp': 1458140101,
             'uploader_id': '12639966',
             'uploader': 'Live Roaldset',
-        }
+        },
     }
 
     def _real_extract(self, url):
-        article_type, article_id = re.match(self._VALID_URL, url).groups()
+        article_type, article_id = self._match_valid_url(url).groups()
         if article_type == 'filmnytt':
             webpage = self._download_webpage(url, article_id)
             article_id = self._search_regex(r'data-videoid="(\d+)"', webpage, 'article id')