Skip to content

Commit

Permalink
revert: use _match_valid_url function
Browse files Browse the repository at this point in the history
  • Loading branch information
arkamar authored and dirkf committed Feb 14, 2022
1 parent 29f7bfc commit 8088ce0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/streamcz.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# coding: utf-8
import json
import re

from .common import InfoExtractor
from ..utils import (
Expand Down Expand Up @@ -55,7 +56,7 @@ def _extract_formats(self, spl_url, video):
}

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',
Expand Down

0 comments on commit 8088ce0

Please sign in to comment.