Browse Source

[metacafe] Use compat_urllib_parse_unquote

totalwebcasting
Sergey M․ 9 years ago
parent
commit
c177bb3a50
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/metacafe.py

+ 2
- 1
youtube_dl/extractor/metacafe.py View File

@ -6,6 +6,7 @@ from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
compat_urllib_parse,
compat_urllib_parse_unquote,
compat_urllib_request,
)
from ..utils import (
@ -155,7 +156,7 @@ class MetacafeIE(InfoExtractor):
video_url = None
mobj = re.search(r'(?m)&mediaURL=([^&]+)', webpage)
if mobj is not None:
mediaURL = compat_urllib_parse.unquote(mobj.group(1))
mediaURL = compat_urllib_parse_unquote(mobj.group(1))
video_ext = mediaURL[-3:]
# Extract gdaKey if available


Loading…
Cancel
Save