1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Use a proxy if provided

This commit is contained in:
Phxntxm 2017-05-11 22:06:10 -05:00
parent 79ed786bb6
commit 3e14ddfb89

View file

@ -3,6 +3,8 @@ import asyncio
import functools
import youtube_dl
from .. import utils
from concurrent.futures import ThreadPoolExecutor
def match_filter(info_dict):
@ -25,6 +27,7 @@ ytdl_format_options = {
'match_filter': match_filter,
'no_warnings': True,
'default_search': 'auto',
'proxy': utils.ytdl_proxy,
'source_address': '0.0.0.0'
}