Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
Question
Hello, I yesterday started using youtube-dl python and now it gives error: [tls @ 0000027468033a00] Error in the pull function.
[https @ 0000027468030980] Will reconnect at 196608 in 0 second(s), error=I/O error.
[tls @ 0000027468249cc0] Error in the pull function.
[https @ 0000027468030980] Will reconnect at 376832 in 0 second(s), error=I/O error.
[tls @ 00000274682cecc0] Error in the pull function.
[https @ 0000027468030980] Will reconnect at 557056 in 0 second(s), error=I/O error.
[tls @ 00000274682ee400] Error in the pull function.
[https @ 0000027468030980] Will reconnect at 737280 in 0 second(s), error=I/O error. Code is here: @bot.command()
async def play(ctx, url):
"""Plays music. Example:play video_url"""
options = '-vn'
before_options = '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5'
with youtube_dl.YoutubeDL(ytdl_options) as ydl:
info = ydl.extract_info(url, download=False)
audiourl = info['formats'][0]['url']
source = discord.FFmpegPCMAudio(audiourl, options=options, before_options=before_options)
bot.voiceclient.play(source)