podflow 20250427__py3-none-any.whl → 20250430__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- podflow/download/show_progress.py +4 -2
- podflow/httpfs/app_bottle.py +1 -1
- podflow/httpfs/download_bar.py +5 -2
- podflow/main_podcast.py +3 -3
- podflow/templates/css/index.css +8 -1
- podflow/templates/index.html +2 -1
- podflow/templates/js/index.js +701 -457
- {podflow-20250427.dist-info → podflow-20250430.dist-info}/METADATA +1 -1
- {podflow-20250427.dist-info → podflow-20250430.dist-info}/RECORD +12 -12
- {podflow-20250427.dist-info → podflow-20250430.dist-info}/WHEEL +0 -0
- {podflow-20250427.dist-info → podflow-20250430.dist-info}/entry_points.txt +0 -0
- {podflow-20250427.dist-info → podflow-20250430.dist-info}/top_level.txt +0 -0
@@ -42,7 +42,8 @@ def show_progress(stream):
|
|
42
42
|
mod=1,
|
43
43
|
per=stream["downloaded_bytes"] / stream["total_bytes"],
|
44
44
|
retime=eta,
|
45
|
-
speed=f"{speed}/s
|
45
|
+
speed=f"{speed}/s",
|
46
|
+
part=f"{downloaded_bytes}/{total_bytes}",
|
46
47
|
status="下载中",
|
47
48
|
)
|
48
49
|
if stream["status"] == "finished":
|
@@ -59,6 +60,7 @@ def show_progress(stream):
|
|
59
60
|
mod=1,
|
60
61
|
per=1,
|
61
62
|
retime=elapsed,
|
62
|
-
speed=f"{speed}/s
|
63
|
+
speed=f"{speed}/s",
|
64
|
+
part=f"{downloaded_bytes}/{total_bytes}",
|
63
65
|
status="下载完成",
|
64
66
|
)
|
podflow/httpfs/app_bottle.py
CHANGED
@@ -363,7 +363,7 @@ class bottle_app:
|
|
363
363
|
filename = upload_file.filename
|
364
364
|
name = filename.split(".")[0]
|
365
365
|
suffix = filename.split(".")[1]
|
366
|
-
if suffix in ["mp4", "m4a"]:
|
366
|
+
if suffix not in ["mp4", "m4a"]:
|
367
367
|
self.print_out("upload", 404)
|
368
368
|
return {
|
369
369
|
"code": -6,
|
podflow/httpfs/download_bar.py
CHANGED
@@ -9,6 +9,7 @@ def download_bar(
|
|
9
9
|
per=0,
|
10
10
|
retime="00:00",
|
11
11
|
speed=" 0.00 B",
|
12
|
+
part="",
|
12
13
|
status="准备中",
|
13
14
|
idname="",
|
14
15
|
nametext="",
|
@@ -20,6 +21,7 @@ def download_bar(
|
|
20
21
|
per,
|
21
22
|
retime,
|
22
23
|
speed,
|
24
|
+
part,
|
23
25
|
status,
|
24
26
|
idname,
|
25
27
|
nametext,
|
@@ -30,6 +32,7 @@ def download_bar(
|
|
30
32
|
gVar.index_message["download"][-1][0] = per
|
31
33
|
gVar.index_message["download"][-1][1] = retime
|
32
34
|
gVar.index_message["download"][-1][2] = speed
|
33
|
-
gVar.index_message["download"][-1][3] =
|
35
|
+
gVar.index_message["download"][-1][3] = part
|
36
|
+
gVar.index_message["download"][-1][4] = status
|
34
37
|
elif mod == 2 and gVar.index_message["download"]:
|
35
|
-
gVar.index_message["download"][-1][
|
38
|
+
gVar.index_message["download"][-1][4] = status
|
podflow/main_podcast.py
CHANGED
@@ -69,7 +69,7 @@ def main_podcast():
|
|
69
69
|
# 初始化
|
70
70
|
build_original()
|
71
71
|
# http共享
|
72
|
-
port = gVar.config.get("port",
|
72
|
+
port = gVar.config.get("port", 8000) # 使用 .get 获取端口
|
73
73
|
hostip = "0.0.0.0"
|
74
74
|
|
75
75
|
if port_judge(hostip, port): # 假设 port_judge 存在
|
@@ -102,8 +102,8 @@ def main_podcast():
|
|
102
102
|
)
|
103
103
|
cherrypy.engine.start() # 启动 CherryPy 服务器
|
104
104
|
time_print(f"HTTP服务器启动, 端口: \033[32m{port}\033[0m")
|
105
|
-
if parse.index:
|
106
|
-
open_url(f"{gVar.config['address']}/index")
|
105
|
+
if parse.index:
|
106
|
+
open_url(f"{gVar.config['address']}/index")
|
107
107
|
if parse.httpfs: # HttpFS参数判断, 是否继续运行
|
108
108
|
cherrypy.engine.block() # 阻止程序退出, 保持HTTP服务运行
|
109
109
|
sys.exit(0)
|
podflow/templates/css/index.css
CHANGED
@@ -140,7 +140,6 @@ main.full {
|
|
140
140
|
.common-area {
|
141
141
|
width: 100%;
|
142
142
|
max-width: 520px;
|
143
|
-
padding: 0 8px;
|
144
143
|
color: var(--text-color);
|
145
144
|
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
146
145
|
box-sizing: border-box;
|
@@ -159,7 +158,11 @@ textarea {
|
|
159
158
|
background-color: var(--input-bg);
|
160
159
|
font-family: 'Courier New', Courier, monospace; /* 添加字体 */
|
161
160
|
}
|
161
|
+
#inputOutput {
|
162
|
+
padding: 4px 8px;
|
163
|
+
}
|
162
164
|
#messageDownload {
|
165
|
+
padding: 0 8px;
|
163
166
|
max-height: 180px;
|
164
167
|
max-width: 99%;
|
165
168
|
height: auto;
|
@@ -168,6 +171,7 @@ textarea {
|
|
168
171
|
background-color: var(--bg-color);
|
169
172
|
}
|
170
173
|
#messageArea {
|
174
|
+
padding: 4px 8px;
|
171
175
|
height: 250px;
|
172
176
|
font-size: 12px;
|
173
177
|
border: 1px solid var(--input-border);
|
@@ -176,6 +180,7 @@ textarea {
|
|
176
180
|
font-family: 'Courier New', Courier, monospace; /* 添加字体 */
|
177
181
|
}
|
178
182
|
#messageHttp {
|
183
|
+
padding: 4px 8px;
|
179
184
|
height: 100px;
|
180
185
|
font-size: 12px;
|
181
186
|
border: 1px solid var(--input-border);
|
@@ -347,6 +352,8 @@ button:hover {
|
|
347
352
|
margin-left: auto;
|
348
353
|
flex-shrink: 0;
|
349
354
|
align-self: flex-end;
|
355
|
+
position: relative;
|
356
|
+
top: -2px;
|
350
357
|
}
|
351
358
|
.scroll-container {
|
352
359
|
flex: 1; /* 自适应宽度 */
|
podflow/templates/index.html
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>Podflow</title>
|
7
7
|
<link rel="stylesheet" href="/templates/css/index.css" />
|
8
|
+
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
8
9
|
</head>
|
9
10
|
<body>
|
10
11
|
<!-- 菜单栏 -->
|
@@ -53,7 +54,7 @@
|
|
53
54
|
</form>
|
54
55
|
</section>
|
55
56
|
</main>
|
56
|
-
<script src="/templates/js/qrcode.min.js"></script>
|
57
57
|
<script src="/templates/js/index.js"></script>
|
58
|
+
<script src="/templates/js/qrcode.min.js"></script>
|
58
59
|
</body>
|
59
60
|
</html>
|