]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/xstream.py
Allow extractors to specify section_start/end for clips
[yt-dlp.git] / yt_dlp / extractor / xstream.py
index cd9c465e442efedf33fa3566d48fb882b18ea7e0..42bffb071fcb7489c521786d6e39cbcd91fa8eb1 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -112,7 +109,7 @@ def _extract_video_info(self, partner_id, video_id):
         }
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         partner_id = mobj.group('partner_id')
         video_id = mobj.group('id')