podflow 20250606__py3-none-any.whl → 20250606.1__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/httpfs/app_bottle.py +6 -0
- podflow/remove/remove_dir.py +1 -1
- podflow/remove/remove_file.py +2 -2
- podflow/upload/upload_files.py +6 -3
- {podflow-20250606.dist-info → podflow-20250606.1.dist-info}/METADATA +1 -1
- {podflow-20250606.dist-info → podflow-20250606.1.dist-info}/RECORD +9 -9
- {podflow-20250606.dist-info → podflow-20250606.1.dist-info}/WHEEL +0 -0
- {podflow-20250606.dist-info → podflow-20250606.1.dist-info}/entry_points.txt +0 -0
- {podflow-20250606.dist-info → podflow-20250606.1.dist-info}/top_level.txt +0 -0
podflow/httpfs/app_bottle.py
CHANGED
@@ -343,6 +343,7 @@ class bottle_app:
|
|
343
343
|
if not upload_file:
|
344
344
|
# 打印错误信息并返回错误码
|
345
345
|
self.print_out("upload", 404)
|
346
|
+
upload_file.file.close()
|
346
347
|
return {
|
347
348
|
"code": -4,
|
348
349
|
"message": "No File Provided", # 没有上传文件
|
@@ -353,6 +354,7 @@ class bottle_app:
|
|
353
354
|
uploadfile_hash = build_hash(uploadfile)
|
354
355
|
if upload_hash != uploadfile_hash:
|
355
356
|
self.print_out("upload", 401)
|
357
|
+
upload_file.file.close()
|
356
358
|
return {
|
357
359
|
"code": -5,
|
358
360
|
"message": "Incomplete File", # 文件不完整
|
@@ -361,6 +363,7 @@ class bottle_app:
|
|
361
363
|
if not channelid:
|
362
364
|
# 打印错误信息并返回错误码
|
363
365
|
self.print_out("upload", 404)
|
366
|
+
upload_file.file.close()
|
364
367
|
return {
|
365
368
|
"code": -6,
|
366
369
|
"message": "ChannelId Does Not Exist", # 频道ID不存在
|
@@ -371,6 +374,7 @@ class bottle_app:
|
|
371
374
|
suffix = filename.split(".")[1]
|
372
375
|
if suffix not in ["mp4", "m4a"]:
|
373
376
|
self.print_out("upload", 404)
|
377
|
+
upload_file.file.close()
|
374
378
|
return {
|
375
379
|
"code": -7,
|
376
380
|
"message": "File Format Error", # 文件格式错误
|
@@ -389,6 +393,7 @@ class bottle_app:
|
|
389
393
|
original_file.seek(0)
|
390
394
|
if upload_hash == build_hash(original_file):
|
391
395
|
self.print_out("upload", 200)
|
396
|
+
upload_file.file.close()
|
392
397
|
return {
|
393
398
|
"code": 1,
|
394
399
|
"message": "The Same File Exists", # 相同文件已存在
|
@@ -403,6 +408,7 @@ class bottle_app:
|
|
403
408
|
file_save(uploadfile, filename, address, True)
|
404
409
|
# 打印成功信息并返回成功码
|
405
410
|
self.print_out("upload", 200)
|
411
|
+
upload_file.file.close()
|
406
412
|
return {
|
407
413
|
"code": 0,
|
408
414
|
"message": "Upload Success", # 上传成功
|
podflow/remove/remove_dir.py
CHANGED
podflow/remove/remove_file.py
CHANGED
@@ -14,11 +14,11 @@ def remove_file():
|
|
14
14
|
for file_name in os.listdir(f"channel_audiovisual/{output_dir}"):
|
15
15
|
if file_name not in gVar.all_youtube_content_ytid[output_dir]:
|
16
16
|
os.remove(f"channel_audiovisual/{output_dir}/{file_name}")
|
17
|
-
write_log(f"{name}|{file_name}
|
17
|
+
write_log(f"{name}|{file_name}抛弃文件已删除")
|
18
18
|
|
19
19
|
channelid_bilibili_ids = gVar.channelid_bilibili_ids
|
20
20
|
for output_dir, name in channelid_bilibili_ids.items():
|
21
21
|
for file_name in os.listdir(f"channel_audiovisual/{output_dir}"):
|
22
22
|
if file_name not in gVar.all_bilibili_content_bvid[output_dir]:
|
23
23
|
os.remove(f"channel_audiovisual/{output_dir}/{file_name}")
|
24
|
-
write_log(f"{name}|{file_name}
|
24
|
+
write_log(f"{name}|{file_name}抛弃文件已删除")
|
podflow/upload/upload_files.py
CHANGED
@@ -92,11 +92,14 @@ def record_upload(username, password, channelid, filename):
|
|
92
92
|
gVar.upload_original[index]["hash"] = hashs
|
93
93
|
gVar.upload_original[index]["filename"] = filename
|
94
94
|
if code == 0:
|
95
|
-
bottle_text =
|
95
|
+
bottle_text = "\033[32m上传成功\033[0m"
|
96
|
+
elif code == 1:
|
97
|
+
bottle_text = f"\033[33m上传成功\033[0m: {result.get(code, message)}"
|
96
98
|
else:
|
97
|
-
bottle_text = f"
|
99
|
+
bottle_text = f"\033[31m上传失败\033[0m: {result.get(code, message)}"
|
98
100
|
else:
|
99
|
-
bottle_text =
|
101
|
+
bottle_text = "\033[31m上传失败\033[0m: 网络连接失败"
|
102
|
+
bottle_text = f"{now_time}|{channelname}/{name}|" + bottle_text
|
100
103
|
bottle_app_instance.bottle_print.append(bottle_text)
|
101
104
|
gVar.index_message["http"].append(ansi_to_html(bottle_text))
|
102
105
|
bottle_app_instance.cherry_print(False)
|
@@ -40,7 +40,7 @@ podflow/download/show_progress.py,sha256=y46chchUC9eZCg4ZdNMFnx_bXJQV_IUq15jVzZt
|
|
40
40
|
podflow/download/wait_animation.py,sha256=AUTvszXF89QA7XYjocFIauPKV7Qj8cFqry44teClaLQ,1314
|
41
41
|
podflow/download/youtube_and_bilibili_download.py,sha256=VCEhz6pGXFWXusdbGWqkCzi4f4VsKQVn6sZz1pfGsns,1335
|
42
42
|
podflow/httpfs/__init__.py,sha256=BxEXkufjcx-a0F7sDVXo65hmyANqCCbZUd6EH9i8T2c,45
|
43
|
-
podflow/httpfs/app_bottle.py,sha256=
|
43
|
+
podflow/httpfs/app_bottle.py,sha256=po0yxEvXp6kYupJdaVTR7b-4t-Dv7C-E8D6IOwu9sNU,21703
|
44
44
|
podflow/httpfs/browser.py,sha256=BJ4Xkfiki_tDr0Sc9RqAcEfIVpkAZ3RFOwo0aMHlY3U,197
|
45
45
|
podflow/httpfs/download_bar.py,sha256=0n3HATEO3pdsIpx-E_IZG9OlXa6u-9SeBCoZVgUutyc,965
|
46
46
|
podflow/httpfs/get_channelid.py,sha256=gcwy4IVHBWNQz7qPCpjwiAklGFLRGzvM33-UZz7oFvo,2296
|
@@ -79,8 +79,8 @@ podflow/netscape/__init__.py,sha256=SUw_BtbV3moA324UdxRECkPLv1xHkjio8r_5JTkVfxI,
|
|
79
79
|
podflow/netscape/bulid_netscape.py,sha256=wmUPlDGF8G456GGyajU_6Ak5WJzsqsq4bZgPjCSTGhI,2279
|
80
80
|
podflow/netscape/get_cookie_dict.py,sha256=laqw-eriABiLyciRLzDmistVHHWqmUM-9eEbYZzsqBQ,643
|
81
81
|
podflow/remove/__init__.py,sha256=x1pMfpIyE6xUrmIOkdl43mbvKLwndGo5pIoOBXhJsP4,45
|
82
|
-
podflow/remove/remove_dir.py,sha256=
|
83
|
-
podflow/remove/remove_file.py,sha256=
|
82
|
+
podflow/remove/remove_dir.py,sha256=zqgf47UgxiGiLipb1FeoWKzrSHSxcHaEuu0261bqR1s,1105
|
83
|
+
podflow/remove/remove_file.py,sha256=ZusvZsBQX_yRdLuboD7bZKiOX4z4Rxg66zZK9KDWHwE,1006
|
84
84
|
podflow/repair/__init__.py,sha256=Gpc1i6xiSLodKjjmzH66c_Y1z0HQ9E9CS3p95FRnVFM,45
|
85
85
|
podflow/repair/reverse_log.py,sha256=Wc_vAH0WB-z1fNdWx7FYaVH4caRPtot7tDwDwFhmpz4,1106
|
86
86
|
podflow/templates/index.html,sha256=kGsp1TAcf_qkV6hYRE8Ueq7CaTflR73rsTWtjnWuwwY,2775
|
@@ -98,14 +98,14 @@ podflow/upload/linked_server.py,sha256=h-qSx13fP8_Ny2IKW3wCNPwqRqW6-Iz1pqxD9ga9-
|
|
98
98
|
podflow/upload/login.py,sha256=85sqr12T-3NH-TD3kAMzy4yb1KOheV3Tr0eGee7NCJo,4007
|
99
99
|
podflow/upload/time_key.py,sha256=6jZ3cxUjzj_umYDwH27R0YNZlLXxfhNp-CqV_K22wlo,967
|
100
100
|
podflow/upload/update_upload.py,sha256=_5tp1zPNsC9DdDnLzm-P8bLcOBuDov4eMRHp_861j80,3183
|
101
|
-
podflow/upload/upload_files.py,sha256=
|
101
|
+
podflow/upload/upload_files.py,sha256=0IHVWtf-S2m3UekIFJyIT89lk7mHvTHzAP_CavCDonE,3887
|
102
102
|
podflow/upload/upload_server.py,sha256=BFq3QrWE7U97LbC4EQiDhQXbLapEc4R00eRDBH12E6A,565
|
103
103
|
podflow/youtube/__init__.py,sha256=pgXod8gq0IijZxIkPSwgAOcb9JI5rd1mqMomoR7bcJ4,46
|
104
104
|
podflow/youtube/build.py,sha256=j6SVq3HFFGlNNqRrHfnBIThdzsH88PFmwLnejosif1U,12311
|
105
105
|
podflow/youtube/get.py,sha256=oO32GjTFvUgP5AfFX5AlIuXU2UT6QtOUOXWLFzi8XtI,17157
|
106
106
|
podflow/youtube/login.py,sha256=KYl--ya6Z1u0uIcOp9l8i3DIIj9hsYUDH4dtJjI0MLM,1295
|
107
|
-
podflow-20250606.dist-info/METADATA,sha256=
|
108
|
-
podflow-20250606.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
109
|
-
podflow-20250606.dist-info/entry_points.txt,sha256=mn7hD_c_dmpKe3XU0KNekheBvD01LhlJ9htY-Df0j2A,131
|
110
|
-
podflow-20250606.dist-info/top_level.txt,sha256=fUujhhz-RrMI8aGvi-3Ey5y7FQnpOOgoFw9OWM3yLCU,8
|
111
|
-
podflow-20250606.dist-info/RECORD,,
|
107
|
+
podflow-20250606.1.dist-info/METADATA,sha256=GHtoxpy5Mpw8WYSwEom-YA2WxWbzgKXVk2Hxf6dtPPE,14197
|
108
|
+
podflow-20250606.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
109
|
+
podflow-20250606.1.dist-info/entry_points.txt,sha256=mn7hD_c_dmpKe3XU0KNekheBvD01LhlJ9htY-Df0j2A,131
|
110
|
+
podflow-20250606.1.dist-info/top_level.txt,sha256=fUujhhz-RrMI8aGvi-3Ey5y7FQnpOOgoFw9OWM3yLCU,8
|
111
|
+
podflow-20250606.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|