]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[bet] Use compat_urllib_parse_unquote
authorSergey M․ <dstftw@gmail.com>
Fri, 17 Jul 2015 17:35:14 +0000 (23:35 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 17 Jul 2015 17:35:14 +0000 (23:35 +0600)
youtube_dl/extractor/bet.py

index 26b934543a7ac0d28cabf0ca70610460fc253a2f..03dad4636afdf0443735fde8f1d643aea553ba10 100644 (file)
@@ -1,7 +1,7 @@
 from __future__ import unicode_literals
 
 from .common import InfoExtractor
-from ..compat import compat_urllib_parse
+from ..compat import compat_urllib_parse_unquote
 from ..utils import (
     xpath_text,
     xpath_with_ns,
@@ -57,7 +57,7 @@ class BetIE(InfoExtractor):
         display_id = self._match_id(url)
         webpage = self._download_webpage(url, display_id)
 
-        media_url = compat_urllib_parse.unquote(self._search_regex(
+        media_url = compat_urllib_parse_unquote(self._search_regex(
             [r'mediaURL\s*:\s*"([^"]+)"', r"var\s+mrssMediaUrl\s*=\s*'([^']+)'"],
             webpage, 'media URL'))