X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=blobdiff_plain;f=youtube_dl%2FYoutubeDL.py;h=242affb5b8dbbc88ebf6806642a0e4e61931d0c3;hp=75461f19d06d87e393d8428388119e83b11a98e2;hb=f889cea109b4e2647e3fd6a462c9893b88b21e04;hpb=1bdeb7be2e5bef703d54d8786fbc6f3c0c23faef diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 75461f19d..242affb5b 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -24,6 +24,7 @@ if os.name == 'nt': from .utils import ( compat_cookiejar, + compat_expanduser, compat_http_client, compat_str, compat_urllib_error, @@ -451,7 +452,7 @@ class YoutubeDL(object): template_dict = collections.defaultdict(lambda: 'NA', template_dict) outtmpl = self.params.get('outtmpl', DEFAULT_OUTTMPL) - tmpl = os.path.expanduser(outtmpl) + tmpl = compat_expanduser(outtmpl) filename = tmpl % template_dict return filename except ValueError as err: