Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dircord.py And youtube_dl question #26113

Closed
qwinci opened this issue Jul 25, 2020 · 0 comments
Closed

Dircord.py And youtube_dl question #26113

qwinci opened this issue Jul 25, 2020 · 0 comments

Comments

@qwinci
Copy link

@qwinci qwinci commented Jul 25, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.