podflow 20250330.7__tar.gz → 20250331.1__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.
Files changed (109) hide show
  1. {podflow-20250330.7 → podflow-20250331.1}/PKG-INFO +1 -1
  2. podflow-20250331.1/podflow/httpfs/ansi_to_html.py +51 -0
  3. {podflow-20250330.7 → podflow-20250331.1}/podflow/templates/index.html +32 -32
  4. {podflow-20250330.7 → podflow-20250331.1}/podflow.egg-info/PKG-INFO +1 -1
  5. {podflow-20250330.7 → podflow-20250331.1}/setup.py +1 -1
  6. podflow-20250330.7/podflow/httpfs/ansi_to_html.py +0 -52
  7. {podflow-20250330.7 → podflow-20250331.1}/MANIFEST.in +0 -0
  8. {podflow-20250330.7 → podflow-20250331.1}/README.md +0 -0
  9. {podflow-20250330.7 → podflow-20250331.1}/podflow/__init__.py +0 -0
  10. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/__init__.py +0 -0
  11. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/file_save.py +0 -0
  12. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/folder_build.py +0 -0
  13. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/get_duration.py +0 -0
  14. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/get_file_list.py +0 -0
  15. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/get_html_dict.py +0 -0
  16. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/http_client.py +0 -0
  17. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/list_merge_tidy.py +0 -0
  18. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/qr_code.py +0 -0
  19. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/split_dict.py +0 -0
  20. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/time_format.py +0 -0
  21. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/time_print.py +0 -0
  22. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/time_stamp.py +0 -0
  23. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/vary_replace.py +0 -0
  24. {podflow-20250330.7 → podflow-20250331.1}/podflow/basic/write_log.py +0 -0
  25. {podflow-20250330.7 → podflow-20250331.1}/podflow/bilibili/__init__.py +0 -0
  26. {podflow-20250330.7 → podflow-20250331.1}/podflow/bilibili/build.py +0 -0
  27. {podflow-20250330.7 → podflow-20250331.1}/podflow/bilibili/get.py +0 -0
  28. {podflow-20250330.7 → podflow-20250331.1}/podflow/bilibili/login.py +0 -0
  29. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/__init__.py +0 -0
  30. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/build_original.py +0 -0
  31. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/channge_icon.py +0 -0
  32. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/correct_channelid.py +0 -0
  33. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/correct_config.py +0 -0
  34. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/get_channelid.py +0 -0
  35. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/get_channelid_id.py +0 -0
  36. {podflow-20250330.7 → podflow-20250331.1}/podflow/config/get_config.py +0 -0
  37. {podflow-20250330.7 → podflow-20250331.1}/podflow/download/__init__.py +0 -0
  38. {podflow-20250330.7 → podflow-20250331.1}/podflow/download/convert_bytes.py +0 -0
  39. {podflow-20250330.7 → podflow-20250331.1}/podflow/download/delete_part.py +0 -0
  40. {podflow-20250330.7 → podflow-20250331.1}/podflow/download/dl_aideo_video.py +0 -0
  41. {podflow-20250330.7 → podflow-20250331.1}/podflow/download/show_progress.py +0 -0
  42. {podflow-20250330.7 → podflow-20250331.1}/podflow/download/wait_animation.py +0 -0
  43. {podflow-20250330.7 → podflow-20250331.1}/podflow/download/youtube_and_bilibili_download.py +0 -0
  44. {podflow-20250330.7 → podflow-20250331.1}/podflow/download_and_build.py +0 -0
  45. {podflow-20250330.7 → podflow-20250331.1}/podflow/ffmpeg_judge.py +0 -0
  46. {podflow-20250330.7 → podflow-20250331.1}/podflow/httpfs/__init__.py +0 -0
  47. {podflow-20250330.7 → podflow-20250331.1}/podflow/httpfs/app_bottle.py +0 -0
  48. {podflow-20250330.7 → podflow-20250331.1}/podflow/httpfs/browser.py +0 -0
  49. {podflow-20250330.7 → podflow-20250331.1}/podflow/httpfs/get_channelid.py +0 -0
  50. {podflow-20250330.7 → podflow-20250331.1}/podflow/httpfs/port_judge.py +0 -0
  51. {podflow-20250330.7 → podflow-20250331.1}/podflow/main.py +0 -0
  52. {podflow-20250330.7 → podflow-20250331.1}/podflow/main_podcast.py +0 -0
  53. {podflow-20250330.7 → podflow-20250331.1}/podflow/main_upload.py +0 -0
  54. {podflow-20250330.7 → podflow-20250331.1}/podflow/makeup/__init__.py +0 -0
  55. {podflow-20250330.7 → podflow-20250331.1}/podflow/makeup/del_makeup_format_fail.py +0 -0
  56. {podflow-20250330.7 → podflow-20250331.1}/podflow/makeup/make_up_file.py +0 -0
  57. {podflow-20250330.7 → podflow-20250331.1}/podflow/makeup/make_up_file_format_mod.py +0 -0
  58. {podflow-20250330.7 → podflow-20250331.1}/podflow/makeup/make_up_file_mod.py +0 -0
  59. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/__init__.py +0 -0
  60. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/backup_zip_save.py +0 -0
  61. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/create_main_rss.py +0 -0
  62. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/display_qrcode_and_url.py +0 -0
  63. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/fail_message_initialize.py +0 -0
  64. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/format_time.py +0 -0
  65. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/get_media_name.py +0 -0
  66. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/get_original_rss.py +0 -0
  67. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/get_video_format.py +0 -0
  68. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/get_video_format_multithread.py +0 -0
  69. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/get_youtube_and_bilibili_video_format.py +0 -0
  70. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/media_format.py +0 -0
  71. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/original_rss_fail_print.py +0 -0
  72. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/rss_create_hash.py +0 -0
  73. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/save_rss.py +0 -0
  74. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/title_correction.py +0 -0
  75. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/update_information_display.py +0 -0
  76. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/update_youtube_bilibili_rss.py +0 -0
  77. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/want_retry.py +0 -0
  78. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/xml_item.py +0 -0
  79. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/xml_original_item.py +0 -0
  80. {podflow-20250330.7 → podflow-20250331.1}/podflow/message/xml_rss.py +0 -0
  81. {podflow-20250330.7 → podflow-20250331.1}/podflow/netscape/__init__.py +0 -0
  82. {podflow-20250330.7 → podflow-20250331.1}/podflow/netscape/bulid_netscape.py +0 -0
  83. {podflow-20250330.7 → podflow-20250331.1}/podflow/netscape/get_cookie_dict.py +0 -0
  84. {podflow-20250330.7 → podflow-20250331.1}/podflow/parse_arguments.py +0 -0
  85. {podflow-20250330.7 → podflow-20250331.1}/podflow/remove/__init__.py +0 -0
  86. {podflow-20250330.7 → podflow-20250331.1}/podflow/remove/remove_dir.py +0 -0
  87. {podflow-20250330.7 → podflow-20250331.1}/podflow/remove/remove_file.py +0 -0
  88. {podflow-20250330.7 → podflow-20250331.1}/podflow/repair/__init__.py +0 -0
  89. {podflow-20250330.7 → podflow-20250331.1}/podflow/repair/reverse_log.py +0 -0
  90. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/__init__.py +0 -0
  91. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/add_upload.py +0 -0
  92. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/build_hash.py +0 -0
  93. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/get_upload_original.py +0 -0
  94. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/linked_client.py +0 -0
  95. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/linked_server.py +0 -0
  96. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/login.py +0 -0
  97. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/time_key.py +0 -0
  98. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/update_upload.py +0 -0
  99. {podflow-20250330.7 → podflow-20250331.1}/podflow/upload/upload_server.py +0 -0
  100. {podflow-20250330.7 → podflow-20250331.1}/podflow/youtube/__init__.py +0 -0
  101. {podflow-20250330.7 → podflow-20250331.1}/podflow/youtube/build.py +0 -0
  102. {podflow-20250330.7 → podflow-20250331.1}/podflow/youtube/get.py +0 -0
  103. {podflow-20250330.7 → podflow-20250331.1}/podflow/youtube/login.py +0 -0
  104. {podflow-20250330.7 → podflow-20250331.1}/podflow.egg-info/SOURCES.txt +0 -0
  105. {podflow-20250330.7 → podflow-20250331.1}/podflow.egg-info/dependency_links.txt +0 -0
  106. {podflow-20250330.7 → podflow-20250331.1}/podflow.egg-info/entry_points.txt +0 -0
  107. {podflow-20250330.7 → podflow-20250331.1}/podflow.egg-info/requires.txt +0 -0
  108. {podflow-20250330.7 → podflow-20250331.1}/podflow.egg-info/top_level.txt +0 -0
  109. {podflow-20250330.7 → podflow-20250331.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: podflow
3
- Version: 20250330.7
3
+ Version: 20250331.1
4
4
  Summary: A podcast server that includes YouTube and BiliBili
5
5
  Home-page: https://github.com/gruel-zxz/podflow
6
6
  Author: gruel_zxz
@@ -0,0 +1,51 @@
1
+ # podflow/httpfs/ansi_to_htmlpy
2
+ # coding: utf-8
3
+
4
+ import re
5
+ import html
6
+
7
+
8
+ def ansi_to_html(ansi_text):
9
+ html_output = ""
10
+ ansi_codes = {
11
+ "\033[30m": "color: 30m;", # 黑色
12
+ "\033[31m": "color: 31m;", # 红色
13
+ "\033[32m": "color: 32m;", # 绿色
14
+ "\033[33m": "color: 33m;", # 黄色
15
+ "\033[34m": "color: 34m;", # 蓝色
16
+ "\033[35m": "color: 35m;", # 品红
17
+ "\033[36m": "color: 36m;", # 青色
18
+ "\033[37m": "color: 37m;", # 白色
19
+ "\033[90m": "color: 90m;", # 亮黑色 (通常显示为灰色)
20
+ "\033[91m": "color: 91m;", # 亮红色 (例如:热粉色)
21
+ "\033[92m": "color: 92m;", # 亮绿色 (例如:浅绿色)
22
+ "\033[93m": "color: 93m;", # 亮黄色 (通常与黄色相同)
23
+ "\033[94m": "color: 94m;", # 亮蓝色 (例如:浅蓝色)
24
+ "\033[95m": "color: 95m;", # 亮品红 (通常与品红相同)
25
+ "\033[96m": "color: 96m;", # 亮青色 (通常与青色相同)
26
+ "\033[97m": "color: 97m;", # 亮白色 (例如:爱丽丝蓝)
27
+ "\033[0m": "", # 重置
28
+ }
29
+ inside_span = False
30
+
31
+ parts = re.split(r"(\033\[\d+m)", ansi_text)
32
+
33
+ for part in parts:
34
+ if part in ansi_codes:
35
+ style = ansi_codes[part]
36
+ if style:
37
+ if inside_span:
38
+ html_output += "</span>"
39
+ html_output += f'<span style="{style}">'
40
+ inside_span = True
41
+ elif inside_span: # Reset code
42
+ html_output += "</span>"
43
+ inside_span = False
44
+ else:
45
+ escaped_part = html.escape(part)
46
+ html_output += escaped_part
47
+
48
+ if inside_span:
49
+ html_output += "</span>"
50
+
51
+ return html_output
@@ -20,22 +20,22 @@
20
20
  --menu-text: #333333;
21
21
  --menu-width: 170px;
22
22
  --menu-selected-bg: #cccccc;
23
- .ansi-black { color: black; }
24
- .ansi-red { color: red; }
25
- .ansi-green { color: green; }
26
- .ansi-yellow { color: yellow; }
27
- .ansi-blue { color: blue; }
28
- .ansi-magenta { color: magenta; }
29
- .ansi-cyan { color: cyan; }
30
- .ansi-white { color: white; }
31
- .ansi-bright-black { color: gray; }
32
- .ansi-bright-red { color: #ff69b4; }
33
- .ansi-bright-green { color: #90ee90; }
34
- .ansi-bright-yellow { color: #ffff00; }
35
- .ansi-bright-blue { color: #add8e6; }
36
- .ansi-bright-magenta { color: #ff00ff; }
37
- .ansi-bright-cyan { color: #00ffff; }
38
- .ansi-bright-white { color: #f0f8ff; }
23
+ .ansi-30m { color: #000000; }
24
+ .ansi-31m { color: #ff0000; }
25
+ .ansi-32m { color: #00ff00; }
26
+ .ansi-33m { color: #ffff00; }
27
+ .ansi-34m { color: #0000ff; }
28
+ .ansi-35m { color: #ff00ff; }
29
+ .ansi-36m { color: #00ffff; }
30
+ .ansi-37m { color: #ffffff; }
31
+ .ansi-90m { color: #808080; }
32
+ .ansi-91m { color: #ff8080; }
33
+ .ansi-92m { color: #80ff80; }
34
+ .ansi-93m { color: #ffff80; }
35
+ .ansi-94m { color: #8080ff; }
36
+ .ansi-95m { color: #ff80ff; }
37
+ .ansi-96m { color: #80ffff; }
38
+ .ansi-97m { color: #ffffff; }
39
39
  }
40
40
 
41
41
  /* 深色模式变量 */
@@ -53,22 +53,22 @@
53
53
  --menu-bg: #333333;
54
54
  --menu-text: #e0e0e0;
55
55
  --menu-selected-bg: #555555;
56
- .ansi-black { color: #d3d3d3; /* LightGray */ }
57
- .ansi-red { color: #ff4d4d; /* Lighter Red */ }
58
- .ansi-green { color: #98fb98; /* PaleGreen */ }
59
- .ansi-yellow { color: #ffff66; /* Lighter Yellow */ }
60
- .ansi-blue { color: #87cefa; /* LightSkyBlue */ }
61
- .ansi-magenta { color: #ff80ff; /* Lighter Magenta */ }
62
- .ansi-cyan { color: #00ced1; /* DarkTurquoise */ }
63
- .ansi-white { color: #333; /* Dark Gray */ }
64
- .ansi-bright-black { color: #a9a9a9; /* DarkGray */ }
65
- .ansi-bright-red { color: #ff8080; /* Brighter Red */ }
66
- .ansi-bright-green { color: #b0f0b0; /* Brighter Green */ }
67
- .ansi-bright-yellow { color: #ffff80; /* Brighter Yellow */ }
68
- .ansi-bright-blue { color: #a0cfff; /* Brighter Blue */ }
69
- .ansi-bright-magenta { color: #ff80ff; /* Brighter Magenta */ }
70
- .ansi-bright-cyan { color: #80ffff; /* Brighter Cyan */ }
71
- .ansi-bright-white { color: #fff; /* White */ }
56
+ .ansi-30m { color: #ffffff; }
57
+ .ansi-31m { color: #ff0000; }
58
+ .ansi-32m { color: #00ff00; }
59
+ .ansi-33m { color: #ffff00; }
60
+ .ansi-34m { color: #0000ff; }
61
+ .ansi-35m { color: #ff00ff; }
62
+ .ansi-36m { color: #00ffff; }
63
+ .ansi-37m { color: #000000; }
64
+ .ansi-90m { color: #e0e0e0; }
65
+ .ansi-91m { color: #ff8080; }
66
+ .ansi-92m { color: #80ff80; }
67
+ .ansi-93m { color: #ffff80; }
68
+ .ansi-94m { color: #8080ff; }
69
+ .ansi-95m { color: #ff80ff; }
70
+ .ansi-96m { color: #80ffff; }
71
+ .ansi-97m { color: #000000; }
72
72
  }
73
73
  }
74
74
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: podflow
3
- Version: 20250330.7
3
+ Version: 20250331.1
4
4
  Summary: A podcast server that includes YouTube and BiliBili
5
5
  Home-page: https://github.com/gruel-zxz/podflow
6
6
  Author: gruel_zxz
@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
5
5
 
6
6
  setup(
7
7
  name="podflow",
8
- version="20250330.7",
8
+ version="20250331.1",
9
9
  author="gruel_zxz",
10
10
  author_email="zhuxizhouzxz@gmail.com",
11
11
  description="A podcast server that includes YouTube and BiliBili",
@@ -1,52 +0,0 @@
1
- # podflow/httpfs/ansi_to_htmlpy
2
- # coding: utf-8
3
-
4
- import re
5
- import html
6
-
7
-
8
- def ansi_to_html(ansi_text):
9
- html_output = ""
10
- ansi_codes = {
11
- "\033[30m": "color: black;", # 黑色
12
- "\033[31m": "color: red;", # 红色
13
- "\033[32m": "color: green;", # 绿色
14
- "\033[33m": "color: yellow;", # 黄色
15
- "\033[34m": "color: blue;", # 蓝色
16
- "\033[35m": "color: magenta;", # 品红
17
- "\033[36m": "color: cyan;", # 青色
18
- "\033[37m": "color: white;", # 白色
19
- "\033[90m": "color: gray;", # 亮黑色 (通常显示为灰色)
20
- "\033[91m": "color: #ff69b4;", # 亮红色 (例如:热粉色)
21
- "\033[92m": "color: #90ee90;", # 亮绿色 (例如:浅绿色)
22
- "\033[93m": "color: #ffff00;", # 亮黄色 (通常与黄色相同)
23
- "\033[94m": "color: #add8e6;", # 亮蓝色 (例如:浅蓝色)
24
- "\033[95m": "color: #ff00ff;", # 亮品红 (通常与品红相同)
25
- "\033[96m": "color: #00ffff;", # 亮青色 (通常与青色相同)
26
- "\033[97m": "color: #f0f8ff;", # 亮白色 (例如:爱丽丝蓝)
27
- "\033[0m": "", # 重置
28
- }
29
- inside_span = False
30
-
31
- parts = re.split(r"(\033\[\d+m)", ansi_text)
32
-
33
- for part in parts:
34
- if part in ansi_codes:
35
- style = ansi_codes[part]
36
- if style:
37
- if inside_span:
38
- html_output += "</span>"
39
- html_output += f'<span style="{style}">'
40
- inside_span = True
41
- elif inside_span: # Reset code
42
- html_output += "</span>"
43
- inside_span = False
44
- else:
45
- escaped_part = html.escape(part)
46
- html_output += escaped_part
47
-
48
- if inside_span:
49
- html_output += "</span>"
50
-
51
- #html_output = html_output.replace("\n", "</p><p>")
52
- return html_output
File without changes
File without changes
File without changes