podflow 20250404.6__tar.gz → 20250404.8__tar.gz
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-20250404.6 → podflow-20250404.8}/PKG-INFO +1 -1
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download/show_progress.py +2 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/httpfs/to_html.py +0 -21
- {podflow-20250404.6 → podflow-20250404.8}/podflow/templates/index.html +16 -4
- {podflow-20250404.6 → podflow-20250404.8}/podflow.egg-info/PKG-INFO +1 -1
- {podflow-20250404.6 → podflow-20250404.8}/setup.py +1 -1
- {podflow-20250404.6 → podflow-20250404.8}/MANIFEST.in +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/README.md +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/file_save.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/folder_build.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/get_duration.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/get_file_list.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/get_html_dict.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/http_client.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/list_merge_tidy.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/qr_code.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/split_dict.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/time_format.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/time_print.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/time_stamp.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/vary_replace.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/basic/write_log.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/bilibili/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/bilibili/build.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/bilibili/get.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/bilibili/login.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/build_original.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/channge_icon.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/correct_channelid.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/correct_config.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/get_channelid.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/get_channelid_id.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/config/get_config.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download/convert_bytes.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download/delete_part.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download/dl_aideo_video.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download/wait_animation.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download/youtube_and_bilibili_download.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/download_and_build.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/ffmpeg_judge.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/httpfs/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/httpfs/app_bottle.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/httpfs/browser.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/httpfs/get_channelid.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/httpfs/port_judge.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/main.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/main_podcast.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/main_upload.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/makeup/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/makeup/del_makeup_format_fail.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/makeup/make_up_file.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/makeup/make_up_file_format_mod.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/makeup/make_up_file_mod.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/backup_zip_save.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/create_main_rss.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/display_qrcode_and_url.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/fail_message_initialize.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/format_time.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/get_media_name.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/get_original_rss.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/get_video_format.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/get_video_format_multithread.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/get_youtube_and_bilibili_video_format.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/media_format.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/original_rss_fail_print.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/rss_create_hash.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/save_rss.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/title_correction.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/update_information_display.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/update_youtube_bilibili_rss.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/want_retry.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/xml_item.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/xml_original_item.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/message/xml_rss.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/netscape/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/netscape/bulid_netscape.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/netscape/get_cookie_dict.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/parse_arguments.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/remove/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/remove/remove_dir.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/remove/remove_file.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/repair/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/repair/reverse_log.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/add_upload.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/build_hash.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/get_upload_original.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/linked_client.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/linked_server.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/login.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/time_key.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/update_upload.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/upload/upload_server.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/youtube/__init__.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/youtube/build.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/youtube/get.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow/youtube/login.py +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow.egg-info/SOURCES.txt +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow.egg-info/dependency_links.txt +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow.egg-info/entry_points.txt +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow.egg-info/requires.txt +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/podflow.egg-info/top_level.txt +0 -0
- {podflow-20250404.6 → podflow-20250404.8}/setup.cfg +0 -0
@@ -33,6 +33,7 @@ def show_progress(stream):
|
|
33
33
|
eta = time_format(stream["eta"]).ljust(8)
|
34
34
|
time_print(
|
35
35
|
f"\033[94m{percent}%\033[0m|{downloaded_bytes}/{total_bytes}|\033[32m{speed}/s\033[0m|\033[93m{eta}\033[0m",
|
36
|
+
Top=True,
|
36
37
|
NoEnter=True,
|
37
38
|
Time=False,
|
38
39
|
)
|
@@ -43,5 +44,6 @@ def show_progress(stream):
|
|
43
44
|
elapsed = "Unknown "
|
44
45
|
time_print(
|
45
46
|
f"100.0%|{downloaded_bytes}/{total_bytes}|\033[32m{speed}/s\033[0m|\033[97m{elapsed}\033[0m",
|
47
|
+
Top=True,
|
46
48
|
Time=False,
|
47
49
|
)
|
@@ -54,24 +54,3 @@ 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
|
-
|
@@ -407,7 +407,7 @@
|
|
407
407
|
function appendMessages(container, newMessages, oldMessages) {
|
408
408
|
// 判断当前是否在底部
|
409
409
|
const isAtBottom = container.scrollHeight - container.scrollTop <= container.clientHeight + 10;
|
410
|
-
|
410
|
+
|
411
411
|
// 只追加新数据,避免重复渲染
|
412
412
|
if (newMessages.length === oldMessages.length && newMessages.length > 0) {
|
413
413
|
const lastNewMessage = newMessages[newMessages.length - 1];
|
@@ -416,7 +416,7 @@
|
|
416
416
|
const p = document.createElement('p');
|
417
417
|
p.innerHTML = lastNewMessage;
|
418
418
|
p.className = 'message'; // 添加 CSS 类名
|
419
|
-
|
419
|
+
|
420
420
|
// 获取容器的最后一个子元素
|
421
421
|
const lastChild = container.lastElementChild;
|
422
422
|
// 如果容器有子元素,则替换最后一个
|
@@ -436,12 +436,24 @@
|
|
436
436
|
container.appendChild(p);
|
437
437
|
});
|
438
438
|
}
|
439
|
-
|
439
|
+
|
440
|
+
// 替换倒数第二项和倒数第三项
|
441
|
+
for (let i = 2; i <= 3; i++) {
|
442
|
+
const child = container.children[container.children.length - (i + 1)];
|
443
|
+
if (child && newMessages.length > i) {
|
444
|
+
const newMessage = newMessages[newMessages.length - (i + 1)];
|
445
|
+
const p = document.createElement('p');
|
446
|
+
p.innerHTML = newMessage;
|
447
|
+
p.className = 'message'; // 添加 CSS 类名
|
448
|
+
container.replaceChild(p, child);
|
449
|
+
}
|
450
|
+
}
|
451
|
+
|
440
452
|
// 如果用户没有主动滚动,才自动滚动到底部
|
441
453
|
if (!userScrolled) {
|
442
454
|
container.scrollTop = container.scrollHeight;
|
443
455
|
}
|
444
|
-
}
|
456
|
+
}
|
445
457
|
|
446
458
|
function startMessagePolling() {
|
447
459
|
getMessages();
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{podflow-20250404.6 → podflow-20250404.8}/podflow/message/get_youtube_and_bilibili_video_format.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|