podflow 20250330.4__tar.gz → 20250330.5__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-20250330.4 → podflow-20250330.5}/PKG-INFO +1 -1
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/http_client.py +3 -7
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/get_channelid.py +2 -2
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/get_channelid_id.py +2 -2
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/get_config.py +2 -2
- {podflow-20250330.4 → podflow-20250330.5}/podflow/youtube/login.py +6 -8
- {podflow-20250330.4 → podflow-20250330.5}/podflow.egg-info/PKG-INFO +1 -1
- {podflow-20250330.4 → podflow-20250330.5}/setup.py +1 -1
- {podflow-20250330.4 → podflow-20250330.5}/MANIFEST.in +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/README.md +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/file_save.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/folder_build.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/get_duration.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/get_file_list.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/get_html_dict.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/list_merge_tidy.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/qr_code.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/split_dict.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/time_format.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/time_print.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/time_stamp.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/vary_replace.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/basic/write_log.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/bilibili/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/bilibili/build.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/bilibili/get.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/bilibili/login.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/build_original.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/channge_icon.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/correct_channelid.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/config/correct_config.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download/convert_bytes.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download/delete_part.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download/dl_aideo_video.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download/show_progress.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download/wait_animation.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download/youtube_and_bilibili_download.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/download_and_build.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/ffmpeg_judge.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/httpfs/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/httpfs/ansi_to_html.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/httpfs/app_bottle.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/httpfs/browser.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/httpfs/get_channelid.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/httpfs/port_judge.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/main.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/main_podcast.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/main_upload.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/makeup/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/makeup/del_makeup_format_fail.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/makeup/make_up_file.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/makeup/make_up_file_format_mod.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/makeup/make_up_file_mod.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/backup_zip_save.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/create_main_rss.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/display_qrcode_and_url.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/fail_message_initialize.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/format_time.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/get_media_name.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/get_original_rss.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/get_video_format.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/get_video_format_multithread.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/get_youtube_and_bilibili_video_format.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/media_format.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/original_rss_fail_print.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/rss_create_hash.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/save_rss.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/title_correction.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/update_information_display.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/update_youtube_bilibili_rss.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/want_retry.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/xml_item.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/xml_original_item.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/message/xml_rss.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/netscape/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/netscape/bulid_netscape.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/netscape/get_cookie_dict.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/parse_arguments.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/remove/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/remove/remove_dir.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/remove/remove_file.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/repair/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/repair/reverse_log.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/templates/index.html +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/add_upload.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/build_hash.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/get_upload_original.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/linked_client.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/linked_server.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/login.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/time_key.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/update_upload.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/upload/upload_server.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/youtube/__init__.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/youtube/build.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow/youtube/get.py +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow.egg-info/SOURCES.txt +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow.egg-info/dependency_links.txt +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow.egg-info/entry_points.txt +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow.egg-info/requires.txt +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/podflow.egg-info/top_level.txt +0 -0
- {podflow-20250330.4 → podflow-20250330.5}/setup.cfg +0 -0
@@ -2,8 +2,8 @@
|
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
4
|
import time
|
5
|
-
from datetime import datetime
|
6
5
|
import requests
|
6
|
+
from podflow.basic.time_print import time_print
|
7
7
|
|
8
8
|
|
9
9
|
# HTTP 请求重试模块
|
@@ -66,9 +66,7 @@ def http_client(
|
|
66
66
|
if response is not None and response.status_code in {404}:
|
67
67
|
return response
|
68
68
|
if name:
|
69
|
-
|
70
|
-
f"{datetime.now().strftime('%H:%M:%S')}|{name}|\033[31m连接异常重试中...\033[97m{num + 1}\033[0m"
|
71
|
-
)
|
69
|
+
time_print(f"\033[31m连接异常重试中...\033[97m{num + 1}\033[0m")
|
72
70
|
if err:
|
73
71
|
err = f"{err}\n{str(http_get_error)}"
|
74
72
|
else:
|
@@ -77,7 +75,5 @@ def http_client(
|
|
77
75
|
return response
|
78
76
|
time.sleep(retry_delay)
|
79
77
|
if name:
|
80
|
-
|
81
|
-
f"{datetime.now().strftime('%H:%M:%S')}|{name}|\033[31m达到最大重试次数\033[97m{max_retries}\033[0m{err}"
|
82
|
-
)
|
78
|
+
time_print(f"{name}|\033[31m达到最大重试次数\033[97m{max_retries}\033[0m{err}")
|
83
79
|
return response
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# podflow/config/get_channelid.py
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
|
-
from datetime import datetime
|
5
4
|
from podflow import gVar
|
6
5
|
from podflow.basic.write_log import write_log
|
6
|
+
from podflow.basic.time_print import time_print
|
7
7
|
|
8
8
|
|
9
9
|
# 从配置文件中获取频道模块
|
@@ -15,7 +15,7 @@ def get_channelid(name):
|
|
15
15
|
elif name == "bilibili":
|
16
16
|
output_name = "BiliBili"
|
17
17
|
if f"channelid_{name}" in config:
|
18
|
-
|
18
|
+
time_print(f"已读取{output_name}频道信息")
|
19
19
|
return config[f"channelid_{name}"]
|
20
20
|
else:
|
21
21
|
write_log(f"{output_name}频道信息不存在")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# podflow/config/get_channelid_id.py
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
|
-
from
|
4
|
+
from podflow.basic.time_print import time_print
|
5
5
|
|
6
6
|
|
7
7
|
# 读取频道ID模块
|
@@ -15,7 +15,7 @@ def get_channelid_id(channelid, idname):
|
|
15
15
|
channelid_ids = dict(
|
16
16
|
{channel["id"]: key for key, channel in channelid.items()}
|
17
17
|
)
|
18
|
-
|
18
|
+
time_print(f"读取{output_name}频道的channelid成功")
|
19
19
|
else:
|
20
20
|
channelid_ids = {}
|
21
21
|
return channelid_ids
|
@@ -4,9 +4,9 @@
|
|
4
4
|
import os
|
5
5
|
import sys
|
6
6
|
import json
|
7
|
-
from datetime import datetime
|
8
7
|
from podflow import default_config
|
9
8
|
from podflow.basic.write_log import write_log
|
9
|
+
from podflow.basic.time_print import time_print
|
10
10
|
|
11
11
|
|
12
12
|
# 获取配置信息config模块
|
@@ -26,7 +26,7 @@ def get_config(file_name="config.json"):
|
|
26
26
|
try:
|
27
27
|
with open(file_name, "r", encoding="utf-8") as file:
|
28
28
|
config = json.load(file)
|
29
|
-
|
29
|
+
time_print("已读取配置文件")
|
30
30
|
return config
|
31
31
|
# 如果config格式有问题, 停止运行并报错
|
32
32
|
except Exception as config_error:
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# podflow/youtube/login.py
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
|
-
from datetime import datetime
|
5
|
-
from podflow.basic.http_client import http_client
|
6
4
|
from podflow.basic.write_log import write_log
|
5
|
+
from podflow.basic.time_print import time_print
|
6
|
+
from podflow.basic.http_client import http_client
|
7
7
|
from podflow.netscape.get_cookie_dict import get_cookie_dict
|
8
8
|
|
9
9
|
|
10
10
|
def get_youtube_cookie_fail(arg0):
|
11
|
-
|
11
|
+
time_print(arg0)
|
12
12
|
write_log("YouTube \033[31m获取cookie失败\033[0m")
|
13
13
|
return None
|
14
14
|
|
@@ -26,14 +26,12 @@ def get_youtube_cookie(channelid_youtube_ids):
|
|
26
26
|
):
|
27
27
|
html_content = response.text
|
28
28
|
if '"LOGGED_IN":true' in html_content:
|
29
|
-
|
30
|
-
f"{datetime.now().strftime('%H:%M:%S')}|YouTube \033[32m获取cookie成功\033[0m"
|
31
|
-
)
|
29
|
+
time_print("YouTube \033[32m获取cookie成功\033[0m")
|
32
30
|
return youtube_cookie
|
33
31
|
elif '"LOGGED_IN":false' in html_content:
|
34
|
-
return get_youtube_cookie_fail("
|
32
|
+
return get_youtube_cookie_fail("登陆YouTube失败")
|
35
33
|
else:
|
36
|
-
return get_youtube_cookie_fail("
|
34
|
+
return get_youtube_cookie_fail("登陆YouTube无法判断")
|
37
35
|
else:
|
38
36
|
write_log("YouTube \033[31m获取cookie失败\033[0m")
|
39
37
|
return None
|
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-20250330.4 → podflow-20250330.5}/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
|