Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tianxiawei
dr_py
提交
e13cb868
dr_py
项目概览
tianxiawei
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e13cb868
编写于
9月 13, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
文件变更
上级
7023bbc7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
56 addition
and
22 deletion
+56
-22
base/alist.conf
base/alist.conf
+26
-0
base/解析.conf
base/解析.conf
+2
-3
utils/files.py
utils/files.py
+28
-19
未找到文件。
base/alist.conf
0 → 100644
浏览文件 @
e13cb868
# c=[];for(let i in a){c.push(i+','+a[i])}d=c.join('\n');console.log(d);
🔮嗨翻,
https
://
pan
.
hikerfans
.
com
🦀
9
T
(
Adult
),
https
://
drive
.
9
t
.
ee
🐱梓澪の妙妙屋,
https
://
xn
--
i0v44m
.
xyz
🚆资源小站,
https
://
pan
.
142856
.
xyz
🌤晴园的宝藏库,
https
://
alist
.
52
qy
.
repl
.
co
🐭米奇妙妙屋,
https
://
anime
.
mqmmw
.
ga
💂小兵组网盘影视,
https
://
6
vv
.
app
📀小光盘,
https
://
alist
.
xiaoguanxiaocheng
.
life
🐋一只鱼,
https
://
alist
.
youte
.
ml
🌊七米蓝,
https
://
al
.
chirmyram
.
com
🌴非盘,
http
://
www
.
feifwp
.
top
🥼帅盘,
https
://
hi
.
shuaipeng
.
wang
🐉神族九帝,
https
://
alist
.
shenzjd
.
com
☃姬路白雪,
https
://
pan
.
jlbx
.
xyz
🎧听闻网盘,
https
://
wangpan
.
sangxuesheng
.
com
💾
DISK
,
http
://
124
.
222
.
140
.
243
:
8080
🌨云播放,
https
://
quanzi
.
laoxianghuijia
.
cn
✨星梦,
https
://
pan
.
bashroot
.
top
🌊小江,
https
://
dyj
.
me
💫触光,
https
://
pan
.
ichuguang
.
com
🕵好汉吧,
https
://
8023
.
haohanba
.
cn
🥗
AUNEY
,
http
://
121
.
227
.
25
.
116
:
8008
🎡资源小站,
https
://
960303
.
xyz
/
🏝
fenwe
,
http
://
www
.
fenwe
.
tk
:
5244
🎢轻弹浅唱,
https
://
g
.
xiang
.
lol
\ No newline at end of file
base/解析.conf
浏览文件 @
e13cb868
...
...
@@ -2,5 +2,4 @@
# 0123,对应,普通解析,json解析,并发多json解析,聚合解析,参数3不填默认0
# flags是线路名称标识,会自动拦截并走以下的解析
# 名称,链接,类型,ua (ua不填默认 Mozilla/5.0) 可以手动填 Dart/2.14 (dart:io)
虾米,
https
://
dm
.
xmflv
.
com
:
4433
/?
url
=
\ No newline at end of file
虾米,
https
://
dm
.
xmflv
.
com
:
4433
/?
url
=
\ No newline at end of file
utils/files.py
浏览文件 @
e13cb868
...
...
@@ -5,6 +5,8 @@
# Date : 2022/9/6
import
os
import
shutil
from
utils.system
import
getHost
from
utils.encode
import
base64Encode
from
controllers.service
import
storage_service
...
...
@@ -34,25 +36,32 @@ def get_live_url(new_conf,mode):
def
getAlist
():
base_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
)))
# 上级目录
alist_path
=
os
.
path
.
join
(
base_path
,
'js/alist.conf'
)
with
open
(
alist_path
,
encoding
=
'utf-8'
)
as
f
:
data
=
f
.
read
().
strip
()
alists
=
[]
for
i
in
data
.
split
(
'
\n
'
):
i
=
i
.
strip
()
dt
=
i
.
split
(
','
)
if
not
i
.
strip
().
startswith
(
'#'
):
obj
=
{
'name'
:
dt
[
0
],
'server'
:
dt
[
1
],
'type'
:
"alist"
,
}
if
len
(
dt
)
>
2
:
obj
.
update
({
'password'
:
dt
[
2
]
})
alists
.
append
(
obj
)
print
(
f
'共计
{
len
(
alists
)
}
条alist记录'
)
return
alists
alist_cpath
=
os
.
path
.
join
(
base_path
,
'base/alist.conf'
)
try
:
if
not
os
.
path
.
exists
(
alist_cpath
):
shutil
.
copy
(
alist_path
,
alist_cpath
)
# 复制文件
with
open
(
alist_cpath
,
encoding
=
'utf-8'
)
as
f
:
data
=
f
.
read
().
strip
()
alists
=
[]
for
i
in
data
.
split
(
'
\n
'
):
i
=
i
.
strip
()
dt
=
i
.
split
(
','
)
if
not
i
.
strip
().
startswith
(
'#'
):
obj
=
{
'name'
:
dt
[
0
],
'server'
:
dt
[
1
],
'type'
:
"alist"
,
}
if
len
(
dt
)
>
2
:
obj
.
update
({
'password'
:
dt
[
2
]
})
alists
.
append
(
obj
)
print
(
f
'共计
{
len
(
alists
)
}
条alist记录'
)
return
alists
except
Exception
as
e
:
print
(
f
'获取alist列表失败:
{
e
}
'
)
return
[]
def
custom_merge
(
original
:
dict
,
custom
:
dict
):
"""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录