podflow 20250402.3__py3-none-any.whl → 20250404__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/basic/time_print.py +14 -13
- podflow/download/wait_animation.py +6 -6
- podflow/httpfs/app_bottle.py +2 -2
- podflow/httpfs/to_html.py +21 -0
- {podflow-20250402.3.dist-info → podflow-20250404.dist-info}/METADATA +1 -1
- {podflow-20250402.3.dist-info → podflow-20250404.dist-info}/RECORD +9 -9
- {podflow-20250402.3.dist-info → podflow-20250404.dist-info}/WHEEL +0 -0
- {podflow-20250402.3.dist-info → podflow-20250404.dist-info}/entry_points.txt +0 -0
- {podflow-20250402.3.dist-info → podflow-20250404.dist-info}/top_level.txt +0 -0
podflow/basic/time_print.py
CHANGED
@@ -20,19 +20,20 @@ def time_print(text, Top=False, NoEnter=False, Time=True, Url=""):
|
|
20
20
|
else:
|
21
21
|
print(text_print)
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
gVar.index_message["enter"] = False
|
33
|
-
else:
|
34
|
-
gVar.index_message["enter"] = True
|
23
|
+
if text:
|
24
|
+
text = ansi_to_html(text)
|
25
|
+
gVar.index_message["podflow"].append(
|
26
|
+
[
|
27
|
+
text,
|
28
|
+
Top,
|
29
|
+
NoEnter,
|
30
|
+
]
|
31
|
+
)
|
35
32
|
if Url:
|
36
33
|
gVar.index_message["podflow"].append(
|
37
|
-
|
34
|
+
[
|
35
|
+
f'<a href="{Url}"><span class="ansi-url">{Url}</span></a>',
|
36
|
+
Top,
|
37
|
+
NoEnter,
|
38
|
+
]
|
38
39
|
)
|
@@ -19,6 +19,12 @@ def wait_animation(stop_flag, wait_animation_display_info):
|
|
19
19
|
NoEnter=True,
|
20
20
|
Time=False,
|
21
21
|
)
|
22
|
+
if i % 5 == 0:
|
23
|
+
animation = "."
|
24
|
+
else:
|
25
|
+
animation += "."
|
26
|
+
i += 1
|
27
|
+
time.sleep(0.5)
|
22
28
|
elif stop_flag[0] == "error":
|
23
29
|
time_print(
|
24
30
|
f"{prepare_youtube_print}|{wait_animation_display_info}\033[34m准备中{animation} \033[31m失败:\033[0m",
|
@@ -33,9 +39,3 @@ def wait_animation(stop_flag, wait_animation_display_info):
|
|
33
39
|
Time=False,
|
34
40
|
)
|
35
41
|
break
|
36
|
-
if i % 5 == 0:
|
37
|
-
animation = "."
|
38
|
-
else:
|
39
|
-
animation += "."
|
40
|
-
i += 1
|
41
|
-
time.sleep(0.5)
|
podflow/httpfs/app_bottle.py
CHANGED
@@ -13,8 +13,8 @@ from podflow.basic.file_save import file_save
|
|
13
13
|
from podflow.basic.write_log import write_log
|
14
14
|
from podflow.upload.build_hash import build_hash
|
15
15
|
from podflow.upload.time_key import check_time_key
|
16
|
-
from podflow.httpfs.to_html import ansi_to_html
|
17
16
|
from podflow.httpfs.get_channelid import get_channelid
|
17
|
+
from podflow.httpfs.to_html import ansi_to_html, message_html
|
18
18
|
|
19
19
|
|
20
20
|
class bottle_app:
|
@@ -403,7 +403,7 @@ class bottle_app:
|
|
403
403
|
# 处理消息的接收和发送。
|
404
404
|
def message(self):
|
405
405
|
response.content_type = 'application/json'
|
406
|
-
return
|
406
|
+
return message_html() # 获取消息列表
|
407
407
|
|
408
408
|
|
409
409
|
bottle_app_instance = bottle_app()
|
podflow/httpfs/to_html.py
CHANGED
@@ -54,3 +54,24 @@ def ansi_to_html(ansi_text):
|
|
54
54
|
def qrcode_to_html(url):
|
55
55
|
text = f'<span class="qrcode-container" data-url="{url}"></span>'
|
56
56
|
gVar.index_message["podflow"].append(text)
|
57
|
+
|
58
|
+
|
59
|
+
def message_html():
|
60
|
+
# [text, Top, NoEnter]
|
61
|
+
podflow = []
|
62
|
+
messages = gVar.index_message["podflow"]
|
63
|
+
if messages:
|
64
|
+
for index, message in enumerate(messages):
|
65
|
+
if index > 1 and messages[index -1][2]:
|
66
|
+
if message[1]:
|
67
|
+
podflow[-1] = message[0]
|
68
|
+
else:
|
69
|
+
podflow[-1] += message[0]
|
70
|
+
else:
|
71
|
+
podflow.append(message[0])
|
72
|
+
message = {
|
73
|
+
"podflow": podflow,
|
74
|
+
"http": gVar.index_message["http"],
|
75
|
+
}
|
76
|
+
return message
|
77
|
+
|
@@ -16,7 +16,7 @@ podflow/basic/list_merge_tidy.py,sha256=7hWfSnsPh23edHNU92vxtI0nfpfN8m54GTEt2rGm
|
|
16
16
|
podflow/basic/qr_code.py,sha256=BQFxAx55vqWECTwWgybyXu3IuDFavpc3zMCmZ4XvKKE,1630
|
17
17
|
podflow/basic/split_dict.py,sha256=Ir6GTortcWMUeFITFgY1v-INMla5y0IN3RN3nTgzWqM,401
|
18
18
|
podflow/basic/time_format.py,sha256=T3tw2vbOwxMYYXDaV4Sj76WOZtsspj2lWA_DzWqUEJA,487
|
19
|
-
podflow/basic/time_print.py,sha256=
|
19
|
+
podflow/basic/time_print.py,sha256=eTWP7MpF_NSSG0BluTxgmpWAjHzxh6LuoNEof4fQZJQ,916
|
20
20
|
podflow/basic/time_stamp.py,sha256=Kbz9PzgPtss1fRqPXdfz1q6MTGVMRi3LPClN7wrXSIk,1888
|
21
21
|
podflow/basic/vary_replace.py,sha256=-TyvZxfak6U7Ak8F87ctYUBpHB2Il6iYZof37lwKjto,211
|
22
22
|
podflow/basic/write_log.py,sha256=wfiNfFuRLCWNLXDRNPVaVsKxwB44xxTiCFJ66g71XmU,1255
|
@@ -37,14 +37,14 @@ podflow/download/convert_bytes.py,sha256=6Q3TcPGzCO2FlhOKWbp9RB_GPmfuyKY5suIyE9E
|
|
37
37
|
podflow/download/delete_part.py,sha256=wjY6WulpUMjLx38on0kTLXj0gA04rIuKAdwFidZtWGU,679
|
38
38
|
podflow/download/dl_aideo_video.py,sha256=KKs8EpS3NI_sBMHr-QCAtoq6aGnoRXrqVU07KyLEHlg,10057
|
39
39
|
podflow/download/show_progress.py,sha256=cWlyIh6WqoH3s4WpFSyL6xtiXhQFbrVJVcckxO-1NLg,1595
|
40
|
-
podflow/download/wait_animation.py,sha256=
|
40
|
+
podflow/download/wait_animation.py,sha256=SbdtpY4QzTOxGKX93kSde3syj88dTOzrJMJkkCiS1Yc,1307
|
41
41
|
podflow/download/youtube_and_bilibili_download.py,sha256=dlUh9cPHrYgZAhtXlBUOdFIpZOhv9xOtgdcTaqUvLuY,1294
|
42
42
|
podflow/httpfs/__init__.py,sha256=BxEXkufjcx-a0F7sDVXo65hmyANqCCbZUd6EH9i8T2c,45
|
43
|
-
podflow/httpfs/app_bottle.py,sha256=
|
43
|
+
podflow/httpfs/app_bottle.py,sha256=FU3LpdEDGXhEb-fHRWIk1WYgywKN3FSQAKECdJ68RNA,16797
|
44
44
|
podflow/httpfs/browser.py,sha256=BJ4Xkfiki_tDr0Sc9RqAcEfIVpkAZ3RFOwo0aMHlY3U,197
|
45
45
|
podflow/httpfs/get_channelid.py,sha256=gcwy4IVHBWNQz7qPCpjwiAklGFLRGzvM33-UZz7oFvo,2296
|
46
46
|
podflow/httpfs/port_judge.py,sha256=l_nLpsSiIhAzfJGCOWyYC-KkCCWPUW2ybe_5hdMOEzE,764
|
47
|
-
podflow/httpfs/to_html.py,sha256=
|
47
|
+
podflow/httpfs/to_html.py,sha256=a5IzUhbithfESqdc7-ovPegR_6Ovon77J10oIcJSy2U,2417
|
48
48
|
podflow/makeup/__init__.py,sha256=ligUtfj0stTcOHFXDF6eAN7Up2PxlB0GnGbLq7iDY3c,45
|
49
49
|
podflow/makeup/del_makeup_format_fail.py,sha256=XizQh74QYXxRg0e1uerXjd4Tiq5qChks0fTAY7n3Z1I,642
|
50
50
|
podflow/makeup/make_up_file.py,sha256=WJnKtdr6-CMEpxJAADCEhcyIwdUdisxbqXGmzo3R5KQ,2222
|
@@ -95,8 +95,8 @@ podflow/youtube/__init__.py,sha256=pgXod8gq0IijZxIkPSwgAOcb9JI5rd1mqMomoR7bcJ4,4
|
|
95
95
|
podflow/youtube/build.py,sha256=3LYk_ICVXj9XkE9jZ8jEVI8596xxS_QZkcoIwcBE3Ys,12006
|
96
96
|
podflow/youtube/get.py,sha256=Of7PRgUknhpyW70nvyVAUYVb5KyFViKiBTfH3Y6Mke8,16970
|
97
97
|
podflow/youtube/login.py,sha256=KYl--ya6Z1u0uIcOp9l8i3DIIj9hsYUDH4dtJjI0MLM,1295
|
98
|
-
podflow-
|
99
|
-
podflow-
|
100
|
-
podflow-
|
101
|
-
podflow-
|
102
|
-
podflow-
|
98
|
+
podflow-20250404.dist-info/METADATA,sha256=ok3yBOEgUM0TH_2sqwBGRjZONW-qaaEjNQCRR42L9ds,14163
|
99
|
+
podflow-20250404.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
100
|
+
podflow-20250404.dist-info/entry_points.txt,sha256=mn7hD_c_dmpKe3XU0KNekheBvD01LhlJ9htY-Df0j2A,131
|
101
|
+
podflow-20250404.dist-info/top_level.txt,sha256=fUujhhz-RrMI8aGvi-3Ey5y7FQnpOOgoFw9OWM3yLCU,8
|
102
|
+
podflow-20250404.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|