Browse Source

[xbef] Use compat_urllib_parse_unquote

master
Sergey M․ 9 years ago
parent
commit
736f003f2e
1 changed files with 2 additions and 4 deletions
  1. 6
      youtube_dl/extractor/xbef.py

6
youtube_dl/extractor/xbef.py

@ -1,9 +1,7 @@
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
)
from ..compat import compat_urllib_parse_unquote
class XBefIE(InfoExtractor):
@ -30,7 +28,7 @@ class XBefIE(InfoExtractor):
config_url_enc = self._download_webpage(
'http://xbef.com/Main/GetVideoURLEncoded/%s' % video_id, video_id,
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_url, video_id, note='Retrieving config')

Loading…
Cancel
Save