Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
657 views
in Technique[技术] by (71.8m points)

configuration - Error when attempting to set config location (youtube-dl)

I am trying to set the config.txt in my AppData folder, so I created the config file and made a simple command set shown here.

# Lines starting with # are comments

# always mp4 file format

-f mp4

# extract to photos

-o C:UsersjamsiDesktopMiscPhotos And Shit 2.0\%(title)s.%(ext)s

with this when I go into cmd and do the --config-location command like this:

youtube-dl -v --config-location %APPDATA%youtube-dlconfig.txt

because I set it to verbose i got all the info but it looked like nothing was wrong as seen here:

[debug] System config: []
[debug] User config: []
[debug] Custom config: ['-f', 'mp4', '-o', 'C:UsersjamsiDesktopMiscPhotos', 'And', 'Shit', '2.0%(title)s.%(ext)s']
[debug] Command-line args: ['-v', '--config-location', 'C:\Users\jamsi\AppData\Roaming\youtube-dl\config.txt']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.01.24.1
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 4.3.1-2021-01-01-full_build-www.gyan.dev, ffprobe 4.3.1-2021-01-01-full_build-www.gyan.dev
[debug] Proxy map: {}
ERROR: fixed output name but more than one file to download

So with the error, I fiddled around with the location and placement of the options in the command, I even tried adding a youtube link, but it appeared to be the same error. I'm not really even sure what to do, so if any of you guys know what to do, please tell me!

question from:https://stackoverflow.com/questions/65893738/error-when-attempting-to-set-config-location-youtube-dl

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...