podflow 20250401.2__tar.gz → 20250402.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.
- {podflow-20250401.2 → podflow-20250402.1}/PKG-INFO +1 -1
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/qr_code.py +4 -1
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/time_print.py +13 -4
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/write_log.py +4 -4
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/save_rss.py +2 -4
- {podflow-20250401.2 → podflow-20250402.1}/podflow/templates/index.html +5 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow.egg-info/PKG-INFO +1 -1
- {podflow-20250401.2 → podflow-20250402.1}/setup.py +1 -1
- {podflow-20250401.2 → podflow-20250402.1}/MANIFEST.in +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/README.md +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/file_save.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/folder_build.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/get_duration.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/get_file_list.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/get_html_dict.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/http_client.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/list_merge_tidy.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/split_dict.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/time_format.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/time_stamp.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/basic/vary_replace.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/bilibili/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/bilibili/build.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/bilibili/get.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/bilibili/login.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/build_original.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/channge_icon.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/correct_channelid.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/correct_config.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/get_channelid.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/get_channelid_id.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/config/get_config.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download/convert_bytes.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download/delete_part.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download/dl_aideo_video.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download/show_progress.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download/wait_animation.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download/youtube_and_bilibili_download.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/download_and_build.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/ffmpeg_judge.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/httpfs/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/httpfs/app_bottle.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/httpfs/browser.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/httpfs/get_channelid.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/httpfs/port_judge.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/httpfs/to_html.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/main.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/main_podcast.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/main_upload.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/makeup/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/makeup/del_makeup_format_fail.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/makeup/make_up_file.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/makeup/make_up_file_format_mod.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/makeup/make_up_file_mod.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/backup_zip_save.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/create_main_rss.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/display_qrcode_and_url.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/fail_message_initialize.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/format_time.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/get_media_name.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/get_original_rss.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/get_video_format.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/get_video_format_multithread.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/get_youtube_and_bilibili_video_format.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/media_format.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/original_rss_fail_print.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/rss_create_hash.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/title_correction.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/update_information_display.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/update_youtube_bilibili_rss.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/want_retry.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/xml_item.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/xml_original_item.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/message/xml_rss.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/netscape/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/netscape/bulid_netscape.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/netscape/get_cookie_dict.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/parse_arguments.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/remove/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/remove/remove_dir.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/remove/remove_file.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/repair/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/repair/reverse_log.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/add_upload.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/build_hash.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/get_upload_original.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/linked_client.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/linked_server.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/login.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/time_key.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/update_upload.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/upload/upload_server.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/youtube/__init__.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/youtube/build.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/youtube/get.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow/youtube/login.py +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow.egg-info/SOURCES.txt +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow.egg-info/dependency_links.txt +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow.egg-info/entry_points.txt +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow.egg-info/requires.txt +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/podflow.egg-info/top_level.txt +0 -0
- {podflow-20250401.2 → podflow-20250402.1}/setup.cfg +0 -0
@@ -3,10 +3,13 @@
|
|
3
3
|
|
4
4
|
import math
|
5
5
|
import pyqrcode
|
6
|
+
from podflow.httpfs.to_html import qrcode_to_html
|
6
7
|
|
7
8
|
|
8
9
|
# 网址二维码模块
|
9
|
-
def qr_code(data):
|
10
|
+
def qr_code(data, to_html=False):
|
11
|
+
if to_html:
|
12
|
+
qrcode_to_html(data)
|
10
13
|
qr = pyqrcode.create(
|
11
14
|
data,
|
12
15
|
error='L', # 对应于ERROR_CORRECT_L,可选值: 'L','M','Q','H'
|
@@ -6,22 +6,31 @@ from podflow import gVar
|
|
6
6
|
from podflow.httpfs.to_html import ansi_to_html
|
7
7
|
|
8
8
|
|
9
|
-
def time_print(text, Top=False, NoEnter=False, Time=True):
|
9
|
+
def time_print(text, Top=False, NoEnter=False, Time=True, Url=""):
|
10
10
|
if Time:
|
11
11
|
text = f"{datetime.now().strftime('%H:%M:%S')}|{text}"
|
12
12
|
if Top:
|
13
13
|
text = f"\r{text}"
|
14
|
+
if Url:
|
15
|
+
text_print = f"{text}\n\033[34m{Url}\033[0m"
|
16
|
+
else:
|
17
|
+
text_print = f"{text}"
|
14
18
|
if NoEnter:
|
15
|
-
print(
|
19
|
+
print(text_print, end="")
|
16
20
|
else:
|
17
|
-
print(
|
21
|
+
print(text_print)
|
22
|
+
|
18
23
|
text = ansi_to_html(text)
|
19
24
|
if not gVar.index_message["enter"] and gVar.index_message["podflow"]:
|
20
25
|
if Top and gVar.index_message["podflow"]:
|
21
26
|
gVar.index_message["podflow"][-1] = text
|
22
27
|
else:
|
23
|
-
gVar.index_message["podflow"][-1] +=
|
28
|
+
gVar.index_message["podflow"][-1] += text
|
24
29
|
else:
|
25
30
|
gVar.index_message["podflow"].append(text)
|
26
31
|
if NoEnter:
|
27
32
|
gVar.index_message["enter"] = False
|
33
|
+
if Url:
|
34
|
+
gVar.index_message["podflow"].append(
|
35
|
+
f'<a href="{Url}"><span class="ansi-url">{Url}</span></a>'
|
36
|
+
)
|
@@ -1,10 +1,10 @@
|
|
1
|
+
|
1
2
|
# podflow/basic/write_log.py
|
2
3
|
# coding: utf-8
|
3
4
|
|
4
5
|
import re
|
5
6
|
from datetime import datetime
|
6
|
-
from podflow import
|
7
|
-
from podflow.httpfs.to_html import ansi_to_html
|
7
|
+
from podflow.basic.time_print import time_print
|
8
8
|
|
9
9
|
|
10
10
|
# 日志模块
|
@@ -15,6 +15,7 @@ def write_log(
|
|
15
15
|
time_display=True,
|
16
16
|
only_log="",
|
17
17
|
file_name="Podflow.log",
|
18
|
+
url=""
|
18
19
|
):
|
19
20
|
# 获取当前的具体时间
|
20
21
|
current_time = datetime.now()
|
@@ -36,5 +37,4 @@ def write_log(
|
|
36
37
|
formatted_time_mini = current_time.strftime("%H:%M:%S")
|
37
38
|
log_print = f"{formatted_time_mini}|{log}" if time_display else f"{log}"
|
38
39
|
log_print = f"{log_print}|{suffix}" if suffix else f"{log_print}"
|
39
|
-
|
40
|
-
print(log_print)
|
40
|
+
time_print(log_print, Time=False, Url=url)
|
@@ -6,7 +6,6 @@ from podflow.basic.qr_code import qr_code
|
|
6
6
|
from podflow.message.xml_rss import xml_rss
|
7
7
|
from podflow.basic.file_save import file_save
|
8
8
|
from podflow.basic.write_log import write_log
|
9
|
-
from podflow.httpfs.to_html import qrcode_to_html
|
10
9
|
from podflow.message.backup_zip_save import backup_zip_save
|
11
10
|
from podflow.message.display_qrcode_and_url import display_qrcode_and_url
|
12
11
|
|
@@ -76,11 +75,10 @@ def save_rss():
|
|
76
75
|
else:
|
77
76
|
overall_url = f"{address}/{filename}.xml"
|
78
77
|
# 调用write_log函数,记录总播客已更新
|
79
|
-
write_log("总播客已更新",
|
78
|
+
write_log("总播客已更新", "地址:", url=overall_url)
|
80
79
|
# 如果gVar.displayed_QRcode中不包含"main",则调用qr_code函数,显示总播客的二维码,并将"main"添加到gVar.displayed_QRcode中
|
81
80
|
if "main" not in gVar.displayed_QRcode:
|
82
|
-
qr_code(overall_url)
|
83
|
-
qrcode_to_html(overall_url)
|
81
|
+
qr_code(overall_url, True)
|
84
82
|
gVar.displayed_QRcode.append("main")
|
85
83
|
|
86
84
|
# 备份主rss
|
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-20250401.2 → podflow-20250402.1}/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
|