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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie verberge ich die Ausgabe von YT-DL in CMD? Python

by Guest » 10 Feb 2025, 08:04

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>

Top