mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
revert: use _match_valid_url function
This commit is contained in:
parent
29f7bfc4d7
commit
8088ce036a
|
@ -1,5 +1,6 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
import json
|
import json
|
||||||
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
|
@ -55,7 +56,7 @@ class StreamCZIE(InfoExtractor):
|
||||||
}
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
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(
|
data = self._download_json(
|
||||||
'https://www.televizeseznam.cz/api/graphql', video_id, 'Downloading GraphQL result',
|
'https://www.televizeseznam.cz/api/graphql', video_id, 'Downloading GraphQL result',
|
||||||
|
|
Loading…
Reference in a new issue