ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.03k stars 9.91k forks source link

ERROR: Error in output template: incomplete format (encoding: 'cp1252') #21202

Closed Coder-Book closed 5 years ago

Coder-Book commented 5 years ago

Checklist

Verbose log

[debug] System config: []
[debug] User config: ['-o', 'W:/YouTube/%(uploader)s/%(playlist)s/%(title)s.%(ext)']
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?list=PL-p5XmQHB_JTcMSvPmXMzNe7ZPMxEx_Oz', '-v']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.05.20
[debug] Python version 3.7.3 (CPython) - Windows-10-10.0.17134-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:playlist] PL-p5XmQHB_JTcMSvPmXMzNe7ZPMxEx_Oz: Downloading webpage
[download] Downloading playlist: i3 Ricing and Configuration
[youtube:playlist] playlist i3 Ricing and Configuration: Downloading 15 videos
[download] Downloading video 1 of 15
[youtube] 7t6iOag6kcE: Downloading webpage
[youtube] 7t6iOag6kcE: Downloading video info webpage
[debug] Default format spec: best/bestvideo+bestaudio
ERROR: Error in output template: incomplete format (encoding: 'cp1252')
Traceback (most recent call last):
  File "c:\users\aiden\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 710, in prepare_filename
    filename = expand_path(outtmpl).replace(sep, '') % template_dict
ValueError: incomplete format

Description

After I created my youtube-dl.conf file in my local user directory, I started getting the error ERROR: Error in output template: incomplete format (encoding: 'cp1252'). I have no clue as to if the issue is because of the -o option in my config or a video encoding error

remitamine commented 5 years ago

missing s character at the end of the output template.