Page 1 of 1

Wie verberge ich die Ausgabe von YT-DL in CMD? Python

Posted: 10 Feb 2025, 08:04
by Guest
Ich kodiere Programm, das MP3-Audio von YouTube-Videos herunterlädt, aber ich habe ein Problem, das YT-DL eine Ausgabe in der Konsole anzeigen < /p>
Mein Code: < /p>

Code: Select all

with open('Links.txt') as f:
content = f.readlines()
for links in content:

ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download([links])
Foto der Ausgabe:

und ich brauche die Option oder eine Möglichkeit, die Ausgabe auszublenden. < /p>