Use a proxy if provided
This commit is contained in:
parent
79ed786bb6
commit
3e14ddfb89
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue