-from .common import InfoExtractor
+import urllib.parse
+
from .brightcove import BrightcoveLegacyIE
-from ..compat import (
- compat_parse_qs,
- compat_urlparse,
-)
+from .common import InfoExtractor
from ..utils import smuggle_url
webpage = self._download_webpage(url, display_id)
brightcove_legacy_url = BrightcoveLegacyIE._extract_brightcove_url(webpage)
if brightcove_legacy_url:
- brightcove_id = compat_parse_qs(compat_urlparse.urlparse(
+ brightcove_id = urllib.parse.parse_qs(urllib.parse.urlparse(
brightcove_legacy_url).query)['@videoPlayer'][0]
else:
brightcove_id = self._search_regex(