mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[xbef] Use compat_urllib_parse_unquote
This commit is contained in:
parent
47af21e8f1
commit
736f003f2e
@ -1,9 +1,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import (
|
from ..compat import compat_urllib_parse_unquote
|
||||||
compat_urllib_parse,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class XBefIE(InfoExtractor):
|
class XBefIE(InfoExtractor):
|
||||||
@ -30,7 +28,7 @@ def _real_extract(self, url):
|
|||||||
config_url_enc = self._download_webpage(
|
config_url_enc = self._download_webpage(
|
||||||
'http://xbef.com/Main/GetVideoURLEncoded/%s' % video_id, video_id,
|
'http://xbef.com/Main/GetVideoURLEncoded/%s' % video_id, video_id,
|
||||||
note='Retrieving config URL')
|
note='Retrieving config URL')
|
||||||
config_url = compat_urllib_parse.unquote(config_url_enc)
|
config_url = compat_urllib_parse_unquote(config_url_enc)
|
||||||
config = self._download_xml(
|
config = self._download_xml(
|
||||||
config_url, video_id, note='Retrieving config')
|
config_url, video_id, note='Retrieving config')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user