Browse Source

[mixcloud] Use compat_urllib_parse_unquote

totalwebcasting
Sergey M․ 10 years ago
parent
commit
c2daf8dfa4
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      youtube_dl/extractor/mixcloud.py

+ 2
- 4
youtube_dl/extractor/mixcloud.py View File

@ -3,9 +3,7 @@ from __future__ import unicode_literals
import re import re
from .common import InfoExtractor from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
)
from ..compat import compat_urllib_parse_unquote
from ..utils import ( from ..utils import (
ExtractorError, ExtractorError,
HEADRequest, HEADRequest,
@ -60,7 +58,7 @@ class MixcloudIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)
uploader = mobj.group(1) uploader = mobj.group(1)
cloudcast_name = mobj.group(2) cloudcast_name = mobj.group(2)
track_id = compat_urllib_parse.unquote('-'.join((uploader, cloudcast_name)))
track_id = compat_urllib_parse_unquote('-'.join((uploader, cloudcast_name)))
webpage = self._download_webpage(url, track_id) webpage = self._download_webpage(url, track_id)


Loading…
Cancel
Save