revert: use _match_valid_url function
authorPetr Vaněk <arkamar@atlas.cz>
Sat, 12 Feb 2022 10:55:13 +0000 (11:55 +0100)
committerdirkf <fieldhouse@gmx.net>
Mon, 14 Feb 2022 07:07:05 +0000 (07:07 +0000)
youtube_dl/extractor/streamcz.py

index 0191c77dece6712f4a4c9406d890577a126706db..998342e939dd249ee6b05bb58bccfbcfd3908e55 100644 (file)
@@ -1,5 +1,6 @@
 # coding: utf-8
 import json
+import re
 
 from .common import InfoExtractor
 from ..utils import (
@@ -55,7 +56,7 @@ class StreamCZIE(InfoExtractor):
                 }
 
     def _real_extract(self, url):
-        display_id, video_id = self._match_valid_url(url).groups()
+        display_id, video_id = re.match(self._VALID_URL, url).groups()
 
         data = self._download_json(
             'https://www.televizeseznam.cz/api/graphql', video_id, 'Downloading GraphQL result',