aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/xtube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-17 23:50:02 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-17 23:50:02 +0600
commitee8de13e14f0dee555c340ef8b9f9c15a6bac6dc (patch)
tree70eef73998ee843510d516458a89891272b7a216 /youtube_dl/extractor/xtube.py
parent7dde5f6a8d10ba98b43f920c73248a8a7e73dc38 (diff)
downloadyoutube-dl-ee8de13e14f0dee555c340ef8b9f9c15a6bac6dc.zip
youtube-dl-ee8de13e14f0dee555c340ef8b9f9c15a6bac6dc.tar.gz
youtube-dl-ee8de13e14f0dee555c340ef8b9f9c15a6bac6dc.tar.bz2
[xtube] Use compat_urllib_parse_unquote
Diffstat (limited to 'youtube_dl/extractor/xtube.py')
-rw-r--r--youtube_dl/extractor/xtube.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/xtube.py b/youtube_dl/extractor/xtube.py
index 1644f53..779e4f4 100644
--- a/youtube_dl/extractor/xtube.py
+++ b/youtube_dl/extractor/xtube.py
@@ -5,7 +5,7 @@ import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_request,
- compat_urllib_parse,
+ compat_urllib_parse_unquote,
)
from ..utils import (
parse_duration,
@@ -59,7 +59,7 @@ class XTubeIE(InfoExtractor):
for format_id, video_url in re.findall(
r'flashvars\.quality_(.+?)\s*=\s*"([^"]+)"', webpage):
fmt = {
- 'url': compat_urllib_parse.unquote(video_url),
+ 'url': compat_urllib_parse_unquote(video_url),
'format_id': format_id,
}
m = re.search(r'^(?P<height>\d+)[pP]', format_id)
@@ -68,7 +68,7 @@ class XTubeIE(InfoExtractor):
formats.append(fmt)
if not formats:
- video_url = compat_urllib_parse.unquote(self._search_regex(
+ video_url = compat_urllib_parse_unquote(self._search_regex(
r'flashvars\.video_url\s*=\s*"([^"]+)"',
webpage, 'video URL'))
formats.append({'url': video_url})