Commit e2da45ab authored by Lysander Trischler's avatar Lysander Trischler

Force IPv4 to mitigate HTTP 429 Too Many Requests

https://github.com/ytdl-org/youtube-dl/issues/21729
parent 4d60b3f4
......@@ -115,7 +115,7 @@ class Video(object):
@classmethod
def get_info(cls, video_id):
stdout = subprocess.check_output(['youtube-dl', '--ignore-config', '-j', '--', video_id])
stdout = subprocess.check_output(['youtube-dl', '--force-ipv4', '--ignore-config', '-j', '--', video_id])
return json.loads(stdout.decode('utf-8'))
@classmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment