v1.6.3 프록시 기능을 사용해도 국가차단 우회가 안 되는 문제 수정

This commit is contained in:
joyfuI
2020-07-09 23:59:38 +09:00
parent 6bedf69533
commit ecb4ed12b1
4 changed files with 10 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ menu = {
}
plugin_info = {
'version': '1.6.2',
'version': '1.6.3',
'name': 'youtube-dl',
'category_name': 'vod',
'developer': 'joyfuI',
@@ -170,7 +170,7 @@ def api(sub):
return LogicNormal.abort(ret, 1) # 필수 요청 변수가 없음
if not url.startswith('http'):
return LogicNormal.abort(ret, 2) # 잘못된 동영상 주소
info_dict = Youtube_dl.get_info_dict(url)
info_dict = Youtube_dl.get_info_dict(url, ModelSetting.get('proxy'))
if info_dict is None:
return LogicNormal.abort(ret, 10) # 실패
ret['info_dict'] = info_dict