Good day,
I just copied a simple code from a YouTube tutorial that is supposed to download the mp3 file of any YouTube video. Here’s my code:
from __future__ import unicode_literals
import youtube_dl
import os
from sys import argv
# Download data and config
download_options = {
'format': 'bestaudio/best',
'outtmpl': '%(title)s.%(ext)s',
'nocheckcertificate': True,
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
# Song Directory
if not os.path.exists('Songs'):
os.mkdir('Songs')
else:
os.chdir('Songs')
# Download Songs
with youtube_dl.YoutubeDL(download_options) as dl:
with open('../' + 'songs.txt', 'r') as f:
for song_url in f:
dl.download([song_url])
The issue is the line key': 'FFmpegExtractAudio',
Kassenerfolg it is because I do not have Libav installed. Stash doesn’t find the package release urls. Does anyone know how to fix this?
Thanks a lot