podflow 20250417.2__py3-none-any.whl → 20250429__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/__init__.py +1 -0
- podflow/download/dl_aideo_video.py +12 -0
- podflow/download/show_progress.py +22 -5
- podflow/download/youtube_and_bilibili_download.py +3 -2
- podflow/httpfs/app_bottle.py +74 -13
- podflow/httpfs/download_bar.py +38 -0
- podflow/main_podcast.py +10 -5
- podflow/templates/css/index.css +398 -0
- podflow/templates/index.html +10 -654
- podflow/templates/js/index.js +725 -0
- podflow/templates/js/qrcode.min.js +1 -0
- {podflow-20250417.2.dist-info → podflow-20250429.dist-info}/METADATA +1 -1
- {podflow-20250417.2.dist-info → podflow-20250429.dist-info}/RECORD +16 -12
- {podflow-20250417.2.dist-info → podflow-20250429.dist-info}/WHEEL +0 -0
- {podflow-20250417.2.dist-info → podflow-20250429.dist-info}/entry_points.txt +0 -0
- {podflow-20250417.2.dist-info → podflow-20250429.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,398 @@
|
|
1
|
+
/* 定义颜色变量 - 浅色模式 */
|
2
|
+
:root {
|
3
|
+
--bg-color: #f8f9fa;
|
4
|
+
--text-color: #333333;
|
5
|
+
--secondary-text: #666666;
|
6
|
+
--input-bg: #ffffff;
|
7
|
+
--input-border: #cccccc;
|
8
|
+
--button-bg: #007bff;
|
9
|
+
--button-hover: #0056b3;
|
10
|
+
--button-text: #ffffff;
|
11
|
+
--button-shadow: hsla(0, 0%, 0%, 0.20);
|
12
|
+
--menu-bg: #f0f0f0;
|
13
|
+
--menu-text: #333333;
|
14
|
+
--menu-width: 170px;
|
15
|
+
--menu-selected-bg: #cccccc;
|
16
|
+
/* 将进度条颜色变量修改为蓝色 */
|
17
|
+
--progress-bar-color: #0d6efd; /* 标准蓝色 */
|
18
|
+
--background-bar-color: #e0e0e0; /* 浅色背景下的进度条颜色 */
|
19
|
+
}
|
20
|
+
|
21
|
+
/* 深色模式变量 */
|
22
|
+
@media (prefers-color-scheme: dark) {
|
23
|
+
:root {
|
24
|
+
--bg-color: #222222;
|
25
|
+
--text-color: #e0e0e0;
|
26
|
+
--secondary-text: #aaaaaa;
|
27
|
+
--input-bg: #333333;
|
28
|
+
--input-border: #555555;
|
29
|
+
--button-bg: #0062cc;
|
30
|
+
--button-hover: #0069d9;
|
31
|
+
--button-text: #f0f0f0;
|
32
|
+
--button-shadow: hsla(0, 0%, 0%, 0.40);
|
33
|
+
--menu-bg: #333333;
|
34
|
+
--menu-text: #e0e0e0;
|
35
|
+
--menu-selected-bg: #555555;
|
36
|
+
/* 将深色模式下的进度条颜色修改为较亮的蓝色 */
|
37
|
+
--progress-bar-color: #315188; /* 较亮的蓝色,适合深色背景 */
|
38
|
+
--background-bar-color: #333333; /* 深色背景下的进度条颜色 */
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.ansi-url{
|
43
|
+
color: #4064a0;
|
44
|
+
text-decoration: underline;
|
45
|
+
}
|
46
|
+
|
47
|
+
/* ... (其余的 ANSI 颜色、基本样式、表单样式、按钮样式、提示样式、菜单切换按钮、手机端优化、消息和二维码样式保持不变) ... */
|
48
|
+
.ansi-30m { color: #000000; }
|
49
|
+
.ansi-31m { color: #bb271b; }
|
50
|
+
.ansi-32m { color: #61992e; }
|
51
|
+
.ansi-33m { color: #bea235; }
|
52
|
+
.ansi-34m { color: #4064a0; }
|
53
|
+
.ansi-35m { color: #705278; }
|
54
|
+
.ansi-36m { color: #449598; }
|
55
|
+
.ansi-37m { color: #d4d7d0; }
|
56
|
+
.ansi-90m { color: #565752; }
|
57
|
+
.ansi-91m { color: #dc3f36; }
|
58
|
+
.ansi-92m { color: #53b739; }
|
59
|
+
.ansi-93m { color: #f9ea6b; }
|
60
|
+
.ansi-94m { color: #7c9ecb; }
|
61
|
+
.ansi-95m { color: #de30c5; }
|
62
|
+
.ansi-96m { color: #51b2bb; }
|
63
|
+
.ansi-97m { color: #eeeeec; }
|
64
|
+
|
65
|
+
@media (prefers-color-scheme: dark) {
|
66
|
+
.ansi-30m { color: #ffffff; }
|
67
|
+
.ansi-31m { color: #bb271b; }
|
68
|
+
.ansi-32m { color: #61992e; }
|
69
|
+
.ansi-33m { color: #bea235; }
|
70
|
+
.ansi-34m { color: #4064a0; }
|
71
|
+
.ansi-35m { color: #705278; }
|
72
|
+
.ansi-36m { color: #449598; }
|
73
|
+
.ansi-37m { color: #d4d7d0; }
|
74
|
+
.ansi-90m { color: #565752; }
|
75
|
+
.ansi-91m { color: #dc3f36; }
|
76
|
+
.ansi-92m { color: #53b739; }
|
77
|
+
.ansi-93m { color: #f9ea6b; }
|
78
|
+
.ansi-94m { color: #7c9ecb; }
|
79
|
+
.ansi-95m { color: #de30c5; }
|
80
|
+
.ansi-96m { color: #51b2bb; }
|
81
|
+
.ansi-97m { color: #eeeeec; }
|
82
|
+
}
|
83
|
+
|
84
|
+
/* 基本样式 */
|
85
|
+
body {
|
86
|
+
font-family: Arial, sans-serif;
|
87
|
+
background-color: var(--bg-color);
|
88
|
+
color: var(--text-color);
|
89
|
+
transition: background-color 0.3s, color 0.3s;
|
90
|
+
margin: 0;
|
91
|
+
display: flex;
|
92
|
+
}
|
93
|
+
nav {
|
94
|
+
width: var(--menu-width);
|
95
|
+
background-color: var(--menu-bg);
|
96
|
+
color: var(--menu-text);
|
97
|
+
height: 100vh;
|
98
|
+
position: sticky;
|
99
|
+
top: 0;
|
100
|
+
z-index: 1000;
|
101
|
+
transition: width 0.3s, padding 0.3s, color 0.3s;
|
102
|
+
}
|
103
|
+
nav.hidden {
|
104
|
+
width: 0;
|
105
|
+
padding: 0;
|
106
|
+
overflow: hidden;
|
107
|
+
}
|
108
|
+
nav ul {
|
109
|
+
list-style: none;
|
110
|
+
padding: 0;
|
111
|
+
}
|
112
|
+
nav h3 {
|
113
|
+
text-align: center;
|
114
|
+
margin: 20px 0 0;
|
115
|
+
font-size: 20px;
|
116
|
+
}
|
117
|
+
nav li {
|
118
|
+
margin: 5px 0;
|
119
|
+
cursor: pointer;
|
120
|
+
transition: background-color 0.3s, color 0.3s;
|
121
|
+
padding: 0 20px;
|
122
|
+
height: 40px;
|
123
|
+
line-height: 40px;
|
124
|
+
}
|
125
|
+
nav li:hover {
|
126
|
+
background-color: var(--menu-selected-bg);
|
127
|
+
color: var(--button-hover);
|
128
|
+
}
|
129
|
+
main {
|
130
|
+
flex: 1;
|
131
|
+
padding: 40px;
|
132
|
+
max-width: 520px;
|
133
|
+
transition: margin-left 0.3s;
|
134
|
+
}
|
135
|
+
main.full {
|
136
|
+
margin-left: 0;
|
137
|
+
}
|
138
|
+
|
139
|
+
/* 表单与消息区域共用样式 */
|
140
|
+
.common-area {
|
141
|
+
width: 100%;
|
142
|
+
max-width: 520px;
|
143
|
+
color: var(--text-color);
|
144
|
+
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
145
|
+
box-sizing: border-box;
|
146
|
+
line-height: 1.1;
|
147
|
+
overflow-x: auto; /* 当内容超出宽度时显示水平滚动条(可选) */
|
148
|
+
overflow-y: auto;
|
149
|
+
word-break: break-word;
|
150
|
+
overflow-wrap: break-word;
|
151
|
+
white-space: pre-wrap; /* 保留换行并允许自动换行 */
|
152
|
+
}
|
153
|
+
textarea {
|
154
|
+
height: 250px;
|
155
|
+
font-size: 16px;
|
156
|
+
border: 1px solid var(--input-border);
|
157
|
+
border-radius: 4px;
|
158
|
+
background-color: var(--input-bg);
|
159
|
+
font-family: 'Courier New', Courier, monospace; /* 添加字体 */
|
160
|
+
}
|
161
|
+
#inputOutput {
|
162
|
+
padding: 4px 8px;
|
163
|
+
}
|
164
|
+
#messageDownload {
|
165
|
+
padding: 0 8px;
|
166
|
+
max-height: 180px;
|
167
|
+
max-width: 99%;
|
168
|
+
height: auto;
|
169
|
+
border: 0px;
|
170
|
+
border-radius: 4px;
|
171
|
+
background-color: var(--bg-color);
|
172
|
+
}
|
173
|
+
#messageArea {
|
174
|
+
padding: 4px 8px;
|
175
|
+
height: 250px;
|
176
|
+
font-size: 12px;
|
177
|
+
border: 1px solid var(--input-border);
|
178
|
+
border-radius: 4px;
|
179
|
+
background-color: var(--input-bg);
|
180
|
+
font-family: 'Courier New', Courier, monospace; /* 添加字体 */
|
181
|
+
}
|
182
|
+
#messageHttp {
|
183
|
+
padding: 4px 8px;
|
184
|
+
height: 100px;
|
185
|
+
font-size: 12px;
|
186
|
+
border: 1px solid var(--input-border);
|
187
|
+
border-radius: 4px;
|
188
|
+
background-color: var(--input-bg);
|
189
|
+
font-family: 'Courier New', Courier, monospace; /* 添加字体 */
|
190
|
+
}
|
191
|
+
.button-container {
|
192
|
+
margin-top: 10px;
|
193
|
+
display: flex;
|
194
|
+
justify-content: center; /* 水平居中 */
|
195
|
+
flex-wrap: wrap; /* 换行 */
|
196
|
+
gap: 10px; /* 按钮间距 */
|
197
|
+
}
|
198
|
+
button {
|
199
|
+
background-color: var(--button-bg);
|
200
|
+
color: var(--button-text);
|
201
|
+
border: none;
|
202
|
+
padding: 12px 18px;
|
203
|
+
font-size: 16px;
|
204
|
+
border-radius: 6px;
|
205
|
+
cursor: pointer;
|
206
|
+
transition: background-color 0.3s, box-shadow 0.3s;
|
207
|
+
box-shadow: 2px 2px 8px var(--button-shadow);
|
208
|
+
margin: 5px;
|
209
|
+
}
|
210
|
+
button:hover {
|
211
|
+
background-color: var(--button-hover);
|
212
|
+
}
|
213
|
+
.hint {
|
214
|
+
font-size: 14px;
|
215
|
+
color: var(--secondary-text);
|
216
|
+
margin-top: 10px;
|
217
|
+
}
|
218
|
+
/* 菜单切换按钮 */
|
219
|
+
#toggleMenu {
|
220
|
+
width: 35px;
|
221
|
+
height: 40px;
|
222
|
+
position: fixed;
|
223
|
+
left: var(--menu-width);
|
224
|
+
top: 5px;
|
225
|
+
background: var(--menu-bg);
|
226
|
+
border: none;
|
227
|
+
font-size: 20px;
|
228
|
+
color: var(--text-color);
|
229
|
+
cursor: pointer;
|
230
|
+
transition: left 0.3s, color 0.3s;
|
231
|
+
border-radius: 0 10px 10px 0;
|
232
|
+
display: flex;
|
233
|
+
justify-content: center;
|
234
|
+
align-items: center;
|
235
|
+
box-shadow: 0px 0px 8px var(--button-shadow);
|
236
|
+
margin: 0;
|
237
|
+
}
|
238
|
+
#toggleMenu:hover {
|
239
|
+
color: var(--button-hover);
|
240
|
+
}
|
241
|
+
|
242
|
+
/* 手机端优化 */
|
243
|
+
@media (max-width: 600px) {
|
244
|
+
#messageArea, textarea {
|
245
|
+
max-width: none;
|
246
|
+
}
|
247
|
+
button {
|
248
|
+
width: 90%;
|
249
|
+
}
|
250
|
+
nav {
|
251
|
+
position: fixed;
|
252
|
+
}
|
253
|
+
/* 确保页面宽度不会超出视口 */
|
254
|
+
body, html {
|
255
|
+
width: 100%;
|
256
|
+
overflow-x: hidden;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
.message {
|
260
|
+
padding: 0px;
|
261
|
+
margin: 0px;
|
262
|
+
}
|
263
|
+
|
264
|
+
/* 二维码容器样式 */
|
265
|
+
.qrcode-container {
|
266
|
+
display: inline-block; /* 让容器并排显示 */
|
267
|
+
margin: 0px;
|
268
|
+
}
|
269
|
+
|
270
|
+
.download-container {
|
271
|
+
background-color: var(--input-bg);
|
272
|
+
border-radius: 25px;
|
273
|
+
border: 4px solid var(--input-bg);
|
274
|
+
margin: 4px 0; /* 上下20px间距,左右0 */
|
275
|
+
}
|
276
|
+
|
277
|
+
/* 主进度条样式 */
|
278
|
+
#mainProgressBar {
|
279
|
+
height: 22px;
|
280
|
+
font-weight: bold;
|
281
|
+
font-size: 16px;
|
282
|
+
}
|
283
|
+
.pb-bar {
|
284
|
+
max-width: 100%;
|
285
|
+
height: 17px;
|
286
|
+
background-color: var(--background-bar-color); /* 考虑使用变量 */
|
287
|
+
border-radius: 12px;
|
288
|
+
overflow: hidden;
|
289
|
+
position: relative;
|
290
|
+
border: 1px solid var(--input-border);
|
291
|
+
font-size: 11px;
|
292
|
+
}
|
293
|
+
.pb-progress {
|
294
|
+
height: 100%;
|
295
|
+
background-color: var(--progress-bar-color);
|
296
|
+
width: 0%; /* 根据实际进度更新 */
|
297
|
+
transition: width 0.3s ease-in-out;
|
298
|
+
border-radius: 12px;
|
299
|
+
/* 多背景 */
|
300
|
+
background-image:
|
301
|
+
linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
|
302
|
+
linear-gradient(to right, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%);
|
303
|
+
background-size: 200% 100%, 100% 100%;
|
304
|
+
background-repeat: no-repeat, no-repeat;
|
305
|
+
/* 初始背景位置 */
|
306
|
+
background-position: 100% 0, 0 0; /* 脉冲初始在左侧 */
|
307
|
+
}
|
308
|
+
/* 脉冲动画效果 */
|
309
|
+
.pb-progress.pb-animated {
|
310
|
+
/* 动画:名称 时长 缓动函数 延迟 次数 方向 填充模式 播放状态 */
|
311
|
+
animation: pb-pulse-lr 4s linear infinite alternate; /* 添加 alternate */
|
312
|
+
/* 注意:你也可以调整时长,例如 2s 让单程更快 */
|
313
|
+
}
|
314
|
+
/* 关键帧动画 (保持 L-to-R 定义) */
|
315
|
+
@keyframes pb-pulse-lr {
|
316
|
+
0% {
|
317
|
+
/* 脉冲背景的右边缘对齐容器右边缘 (高亮在左边缘) */
|
318
|
+
background-position: 100% 0, 0 0;
|
319
|
+
}
|
320
|
+
100% {
|
321
|
+
/* 脉冲背景的左边缘对齐容器左边缘 (高亮在右边缘) */
|
322
|
+
background-position: 0% 0, 0 0;
|
323
|
+
}
|
324
|
+
}
|
325
|
+
.pb-status-text {
|
326
|
+
position: absolute;
|
327
|
+
top: 50%;
|
328
|
+
left: 12px; /* 稍微调整左边距 */
|
329
|
+
transform: translateY(-50%);
|
330
|
+
color: var(--text-color); /* 使用文本颜色变量 */
|
331
|
+
z-index: 2; /* 确保状态文本覆盖在进度条上 */
|
332
|
+
}
|
333
|
+
.pb-percentage-text {
|
334
|
+
position: absolute;
|
335
|
+
top: 50%;
|
336
|
+
right: 12px; /* 稍微调整右边距 */
|
337
|
+
transform: translateY(-50%);
|
338
|
+
color: var(--text-color); /* 使用文本颜色变量 */
|
339
|
+
z-index: 2; /* 确保百分比文本覆盖在进度条上 */
|
340
|
+
}
|
341
|
+
|
342
|
+
/* 文字滚动样式样式 */
|
343
|
+
.scroll {
|
344
|
+
display: flex;
|
345
|
+
width: 100%;
|
346
|
+
height: 14px;
|
347
|
+
gap: 20px;
|
348
|
+
}
|
349
|
+
.scroll-suffix {
|
350
|
+
font-size: 7px;
|
351
|
+
color: var(--text-color);
|
352
|
+
margin-left: auto;
|
353
|
+
flex-shrink: 0;
|
354
|
+
align-self: flex-end;
|
355
|
+
position: relative;
|
356
|
+
top: -2px;
|
357
|
+
}
|
358
|
+
.scroll-container {
|
359
|
+
flex: 1; /* 自适应宽度 */
|
360
|
+
max-width: 300px; /* 限制最大宽度 */
|
361
|
+
font-size: 14px;
|
362
|
+
color: var(--text-color);
|
363
|
+
line-height: 14px;
|
364
|
+
overflow: hidden;
|
365
|
+
}
|
366
|
+
.scroll-content {
|
367
|
+
display: inline-flex;
|
368
|
+
white-space: nowrap;
|
369
|
+
}
|
370
|
+
.scroll-text {
|
371
|
+
padding-right: 20px;
|
372
|
+
}
|
373
|
+
/* 只有加了scrolling类才动画 */
|
374
|
+
.scroll-content.scrolling {
|
375
|
+
animation: marquee linear infinite;
|
376
|
+
}
|
377
|
+
@keyframes marquee {
|
378
|
+
0% {
|
379
|
+
transform: translateX(0);
|
380
|
+
}
|
381
|
+
100% {
|
382
|
+
transform: translateX(-50%);
|
383
|
+
}
|
384
|
+
}
|
385
|
+
.speed-text {
|
386
|
+
font-size: 14px;
|
387
|
+
line-height: 14px;
|
388
|
+
padding-left: 12px; /* 向左偏移 10px */
|
389
|
+
flex-shrink: 0;
|
390
|
+
}
|
391
|
+
.time-text {
|
392
|
+
font-size: 14px;
|
393
|
+
line-height: 14px;
|
394
|
+
padding-right: 12px; /* 向右偏移 10px */
|
395
|
+
flex-shrink: 0;
|
396
|
+
margin-left: auto;
|
397
|
+
align-self: flex-end;
|
398
|
+
}
|