podflow 20250327__tar.gz → 20250328__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-20250327 → podflow-20250328}/PKG-INFO +1 -1
- {podflow-20250327 → podflow-20250328}/podflow/httpfs/app_bottle.py +5 -3
- {podflow-20250327 → podflow-20250328}/podflow/templates/index.html +42 -19
- {podflow-20250327 → podflow-20250328}/podflow.egg-info/PKG-INFO +1 -1
- {podflow-20250327 → podflow-20250328}/podflow.egg-info/requires.txt +1 -1
- {podflow-20250327 → podflow-20250328}/setup.py +2 -2
- {podflow-20250327 → podflow-20250328}/MANIFEST.in +0 -0
- {podflow-20250327 → podflow-20250328}/README.md +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/file_save.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/folder_build.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/get_duration.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/get_file_list.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/get_html_dict.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/http_client.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/list_merge_tidy.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/qr_code.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/split_dict.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/time_format.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/time_print.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/time_stamp.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/vary_replace.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/basic/write_log.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/bilibili/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/bilibili/build.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/bilibili/get.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/bilibili/login.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/build_original.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/channge_icon.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/correct_channelid.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/correct_config.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/get_channelid.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/get_channelid_id.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/config/get_config.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download/convert_bytes.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download/delete_part.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download/dl_aideo_video.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download/show_progress.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download/wait_animation.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download/youtube_and_bilibili_download.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/download_and_build.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/ffmpeg_judge.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/httpfs/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/httpfs/browser.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/httpfs/get_channelid.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/httpfs/port_judge.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/main.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/main_podcast.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/main_upload.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/makeup/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/makeup/del_makeup_format_fail.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/makeup/make_up_file.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/makeup/make_up_file_format_mod.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/makeup/make_up_file_mod.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/backup_zip_save.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/create_main_rss.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/display_qrcode_and_url.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/fail_message_initialize.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/format_time.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/get_media_name.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/get_original_rss.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/get_video_format.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/get_video_format_multithread.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/get_youtube_and_bilibili_video_format.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/media_format.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/original_rss_fail_print.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/rss_create_hash.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/save_rss.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/title_correction.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/update_information_display.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/update_youtube_bilibili_rss.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/want_retry.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/xml_item.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/xml_original_item.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/message/xml_rss.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/netscape/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/netscape/bulid_netscape.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/netscape/get_cookie_dict.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/parse_arguments.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/remove/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/remove/remove_dir.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/remove/remove_file.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/repair/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/repair/reverse_log.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/add_upload.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/build_hash.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/get_upload_original.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/linked_client.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/linked_server.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/login.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/time_key.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/update_upload.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/upload/upload_server.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/youtube/__init__.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/youtube/build.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/youtube/get.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow/youtube/login.py +0 -0
- {podflow-20250327 → podflow-20250328}/podflow.egg-info/SOURCES.txt +0 -0
- {podflow-20250327 → podflow-20250328}/podflow.egg-info/dependency_links.txt +0 -0
- {podflow-20250327 → podflow-20250328}/podflow.egg-info/entry_points.txt +0 -0
- {podflow-20250327 → podflow-20250328}/podflow.egg-info/top_level.txt +0 -0
- {podflow-20250327 → podflow-20250328}/setup.cfg +0 -0
@@ -381,13 +381,15 @@ class bottle_app:
|
|
381
381
|
template_path = pkg_resources.resource_filename('podflow', 'templates/index.html')
|
382
382
|
with open(template_path, 'r', encoding="UTF-8") as f:
|
383
383
|
html_content = f.read()
|
384
|
+
self.print_out("index", 200)
|
384
385
|
return html_content
|
385
386
|
|
386
387
|
def getid(self):
|
387
388
|
# 获取 JSON 数据,Bottle 会自动解析请求体中的 JSON 数据
|
388
|
-
getid_data
|
389
|
-
|
390
|
-
|
389
|
+
if getid_data := request.json:
|
390
|
+
content = getid_data.get("content", "")
|
391
|
+
else:
|
392
|
+
content = ""
|
391
393
|
response_message = get_channelid(content)
|
392
394
|
self.print_out("channelid", 200)
|
393
395
|
# 设置响应头为 application/json
|
@@ -5,71 +5,94 @@
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>输入输出示例</title>
|
7
7
|
<style>
|
8
|
+
/* 定义颜色变量 - 浅色模式 */
|
9
|
+
:root {
|
10
|
+
--bg-color: #f8f9fa;
|
11
|
+
--text-color: #333;
|
12
|
+
--secondary-text: #666;
|
13
|
+
--input-bg: #ffffff;
|
14
|
+
--input-border: #ccc;
|
15
|
+
--button-bg: #007bff;
|
16
|
+
--button-hover: #0056b3;
|
17
|
+
--button-text: white;
|
18
|
+
--button-shadow: rgba(0, 0, 0, 0.2);
|
19
|
+
}
|
20
|
+
/* 深色模式变量 */
|
21
|
+
@media (prefers-color-scheme: dark) {
|
22
|
+
:root {
|
23
|
+
--bg-color: #222;
|
24
|
+
--text-color: #e0e0e0;
|
25
|
+
--secondary-text: #aaa;
|
26
|
+
--input-bg: #333;
|
27
|
+
--input-border: #555;
|
28
|
+
--button-bg: #0062cc;
|
29
|
+
--button-hover: #0069d9;
|
30
|
+
--button-text: #f0f0f0;
|
31
|
+
--button-shadow: rgba(0, 0, 0, 0.4);
|
32
|
+
}
|
33
|
+
}
|
8
34
|
/* 基本样式 */
|
9
35
|
body {
|
10
36
|
font-family: Arial, sans-serif;
|
11
37
|
text-align: center;
|
12
38
|
padding: 20px;
|
13
|
-
background-color:
|
39
|
+
background-color: var(--bg-color);
|
40
|
+
color: var(--text-color);
|
41
|
+
transition: background-color 0.3s, color 0.3s;
|
14
42
|
}
|
15
|
-
|
16
43
|
h2 {
|
17
|
-
color:
|
44
|
+
color: var(--text-color);
|
18
45
|
}
|
19
|
-
|
20
46
|
/* 响应式输入框 */
|
21
47
|
textarea {
|
22
48
|
width: 90%;
|
23
49
|
max-width: 600px;
|
24
|
-
height: 250px;
|
50
|
+
height: 250px;
|
25
51
|
font-size: 16px;
|
26
52
|
padding: 10px;
|
27
|
-
border: 1px solid
|
53
|
+
border: 1px solid var(--input-border);
|
28
54
|
border-radius: 8px;
|
29
|
-
resize: vertical;
|
55
|
+
resize: vertical;
|
30
56
|
overflow-y: auto;
|
57
|
+
background-color: var(--input-bg);
|
58
|
+
color: var(--text-color);
|
59
|
+
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
31
60
|
}
|
32
|
-
|
33
61
|
/* 按钮样式 */
|
34
62
|
.button-container {
|
35
63
|
margin-top: 10px;
|
36
64
|
}
|
37
|
-
|
38
65
|
button {
|
39
|
-
background-color:
|
40
|
-
color:
|
66
|
+
background-color: var(--button-bg);
|
67
|
+
color: var(--button-text);
|
41
68
|
border: none;
|
42
69
|
padding: 12px 18px;
|
43
70
|
font-size: 16px;
|
44
71
|
border-radius: 6px;
|
45
72
|
cursor: pointer;
|
46
73
|
transition: 0.3s;
|
47
|
-
box-shadow: 2px 2px 8px
|
74
|
+
box-shadow: 2px 2px 8px var(--button-shadow);
|
48
75
|
margin: 5px;
|
49
76
|
}
|
50
|
-
|
51
77
|
button:hover {
|
52
|
-
background-color:
|
78
|
+
background-color: var(--button-hover);
|
53
79
|
}
|
54
|
-
|
55
80
|
/* 手机端优化 */
|
56
81
|
@media (max-width: 600px) {
|
57
82
|
textarea {
|
58
83
|
font-size: 18px;
|
59
84
|
height: 180px;
|
60
85
|
}
|
61
|
-
|
62
86
|
button {
|
63
87
|
width: 90%;
|
64
88
|
font-size: 18px;
|
65
89
|
padding: 14px;
|
66
90
|
}
|
67
91
|
}
|
68
|
-
|
69
92
|
/* 提示信息 */
|
70
93
|
.hint {
|
71
94
|
font-size: 14px;
|
72
|
-
color:
|
95
|
+
color: var(--secondary-text);
|
73
96
|
margin-top: 10px;
|
74
97
|
}
|
75
98
|
</style>
|
@@ -167,4 +190,4 @@
|
|
167
190
|
}
|
168
191
|
</script>
|
169
192
|
</body>
|
170
|
-
</html>
|
193
|
+
</html>
|
@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
|
|
5
5
|
|
6
6
|
setup(
|
7
7
|
name="podflow",
|
8
|
-
version="
|
8
|
+
version="20250328",
|
9
9
|
author="gruel_zxz",
|
10
10
|
author_email="zhuxizhouzxz@gmail.com",
|
11
11
|
description="A podcast server that includes YouTube and BiliBili",
|
@@ -31,7 +31,7 @@ setup(
|
|
31
31
|
install_requires=[
|
32
32
|
"astral>=3.2",
|
33
33
|
"bottle>=0.13.2",
|
34
|
-
"yt-dlp>=2025.3.
|
34
|
+
"yt-dlp>=2025.3.27",
|
35
35
|
"chardet>=5.2.0",
|
36
36
|
"cherrypy>=18.10.0",
|
37
37
|
"pyqrcode>=1.2.1",
|
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-20250327 → podflow-20250328}/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
|