Не работает ffmpeg discord.py

@client.command(pass_context=True)
async def join(ctx):
    await ctx.author.voice.channel.connect()
    await ctx.send('Бот успешно подключился к голосовому каналу!')

@client.command(pass_context=True)
async def leave(ctx):
    await ctx.voice_client.disconnect()
    await ctx.send('Бот успешно отключился от голосового канала! ')

@client.command(pass_context=True, aliases=['p', 'pla'])
async def play(ctx, url: str):

    song_there = os.path.isfile("song.mp3")
    try:
        if song_there:
            os.remove("song.mp3")
            print("Removed old song file")
    except PermissionError:
        print("Trying to delete song file, but it's being played")
        await ctx.send("Ошибка. Музыка на данный момент проигрывается в голосовом канале!")
        return

    await ctx.send("Получаем данные о звуковом файле...")

    voice = get(client.voice_clients, guild=ctx.guild)

    ydl_opts = {
        'format': 'bestaudio/best',
        'postprocessors': [{
            'key': 'FFmpegExtractAudio',
            'preferredcodec': 'mp3',
            'preferredquality': '192',
        }],
    }

    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
        print("Downloading audio now\n")
        ydl.download([url])

    for file in os.listdir("./"):
        if file.endswith(".mp3"):
            name = file
            print(f"Renamed File: {file}\n")
            os.rename(file, "song.mp3")

    voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print("Song done!"))
    voice.source = discord.PCMVolumeTransformer(voice.source)
    voice.source.volume = 0.07

    nname = name.rsplit("-", 2)
    await ctx.send(f"Проигрываю: {nname[0]}")
    print("playing\n")

Сам код. Установлена последняя версия youtube-dl + ffmpeg. Раньше работало хорошо, а сейчас вообще не работает. В консоли выводит вот это и всё. Консоль. Музыка не выводится.


Ответы (0 шт):