Ethscriptions commited on
Commit
099be0a
·
1 Parent(s): 23ad5d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -9,7 +9,16 @@ st.title('磁力链接 BT 下载器')
9
  magnet_link = st.text_input('请输入磁力链接:')
10
 
11
  if magnet_link:
 
12
  ses = lt.session()
 
 
 
 
 
 
 
 
13
  h = lt.add_magnet_uri(ses, magnet_link, {'save_path': './downloads'})
14
  st.write('开始下载...')
15
 
 
9
  magnet_link = st.text_input('请输入磁力链接:')
10
 
11
  if magnet_link:
12
+ # 创建一个会话并配置设置
13
  ses = lt.session()
14
+ settings = {
15
+ 'connections_limit': 500, # 增加连接数限制
16
+ 'download_rate_limit': 0, # 不限制下载速度
17
+ 'upload_rate_limit': 0, # 不限制上传速度
18
+ # ... 其他设置
19
+ }
20
+ ses.apply_settings(settings)
21
+
22
  h = lt.add_magnet_uri(ses, magnet_link, {'save_path': './downloads'})
23
  st.write('开始下载...')
24