Discord.py: couldn't force ipv4

Created on 1 Aug 2017  路  5Comments  路  Source: Rapptz/discord.py

I couldn't find a way to "--force-ipv4" when I'm creating an ytdl player, I tried lot's of things but when I looked for it on YoutubeDL.py I couldn't find a term to force it on dict, is it possible to --force-ipv4?

my youtube-dl is really slow when I start downloading something, when I looked up using "youtube-dl --force-ipv4 url" worked really well, but when I tried it on my code I just couldn't
This was my last attempt:
player[i] = await chVoice[i].create_ytdl_player(url,ytdl_options={"force_ipv4":True})

ps.: I already tried to put the force as default config and it worked by cmd, not on my code tho

invalid question

All 5 comments

have you tried {"force-ipv4": True} ?

Try looking at youtube-dl's docs, this isn't a discord.py issue, really https://github.com/rg3/youtube-dl/blob/master/README.md#embedding-youtube-dl

Looking at the source for --force-ipv4, you want to set {"source_address": "0.0.0.0"}, which is super intuitive

sorry for asking, it's not that intuitive for me, but it worked quite well, thanks!

(It's not actually intuitive)

thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tairabiteru picture tairabiteru  路  3Comments

Be4Vision picture Be4Vision  路  3Comments

ghost picture ghost  路  3Comments

AraHaan picture AraHaan  路  3Comments

PicklesJars picture PicklesJars  路  3Comments