【问题标题】:FFmpeg not working (discord.py)FFmpeg 不工作(discord.py)
【发布时间】:2018-04-11 20:45:30
【问题描述】:

代码:

channel = ctx.message.author.voice.voice_channel
link = "https://youtube.com/watch?v=videoidhere"
voice = await bot.join_voice_channel(channel)
player = voice.create_ytdl_player(link)
player.start()

我收到此错误:

AttributeError: 'generator' object has no attribute 'start'

FFmpeg 会被破坏吗?如果是的话,我找不到卸载FFmpeg的方法,删除安装文件夹。

【问题讨论】:

    标签: python python-3.x ffmpeg discord discord.py


    【解决方案1】:

    create_ytdl_player 是一个协程。所以你应该在等待函数。

    player = await voice.create_ytdl_player(link)
    

    【讨论】:

      猜你喜欢
      • 2013-07-11
      • 2021-01-16
      • 1970-01-01
      • 2017-08-25
      • 1970-01-01
      • 2016-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多