[dropbox] Fix title encoding on Python 2

This commit is contained in:
Philipp Hagemeister 2014-07-21 13:55:47 +02:00
parent 06c155420f
commit f1f725c6a0
2 changed files with 16 additions and 9 deletions

View file

@ -5,7 +5,7 @@ import os.path
import re
from .common import InfoExtractor
from ..utils import compat_urllib_parse
from ..utils import compat_urllib_parse_unquote
class DropboxIE(InfoExtractor):
@ -23,7 +23,7 @@ class DropboxIE(InfoExtractor):
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
fn = compat_urllib_parse.unquote(mobj.group('title'))
fn = compat_urllib_parse_unquote(mobj.group('title'))
title = os.path.splitext(fn)[0]
video_url = url + '?dl=1'