podflow 20250315__tar.gz → 20250317__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-20250315 → podflow-20250317}/PKG-INFO +1 -1
- {podflow-20250315 → podflow-20250317}/Podflow/repair/reverse_log.py +6 -3
- {podflow-20250315 → podflow-20250317}/podflow.egg-info/PKG-INFO +1 -1
- {podflow-20250315 → podflow-20250317}/setup.py +1 -1
- {podflow-20250315 → podflow-20250317}/Podflow/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/file_save.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/folder_build.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/get_duration.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/get_file_list.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/get_html_dict.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/http_client.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/list_merge_tidy.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/qr_code.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/split_dict.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/time_format.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/time_print.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/time_stamp.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/vary_replace.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/basic/write_log.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/bilibili/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/bilibili/build.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/bilibili/get.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/bilibili/login.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/build_original.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/channge_icon.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/correct_channelid.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/correct_config.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/get_channelid.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/get_channelid_id.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/config/get_config.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download/convert_bytes.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download/delete_part.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download/dl_aideo_video.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download/show_progress.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download/wait_animation.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download/youtube_and_bilibili_download.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/download_and_build.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/ffmpeg_judge.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/httpfs/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/httpfs/app_bottle.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/httpfs/port_judge.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/main.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/main_podcast.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/main_upload.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/makeup/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/makeup/del_makeup_format_fail.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/makeup/make_up_file.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/makeup/make_up_file_format_mod.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/makeup/make_up_file_mod.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/backup_zip_save.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/create_main_rss.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/display_qrcode_and_url.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/fail_message_initialize.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/format_time.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/get_media_name.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/get_original_rss.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/get_video_format.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/get_video_format_multithread.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/get_youtube_and_bilibili_video_format.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/media_format.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/original_rss_fail_print.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/rss_create_hash.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/save_rss.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/title_correction.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/update_information_display.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/update_youtube_bilibili_rss.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/want_retry.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/xml_item.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/xml_original_item.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/message/xml_rss.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/netscape/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/netscape/bulid_netscape.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/netscape/get_cookie_dict.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/parse_arguments.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/remove/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/remove/remove_dir.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/remove/remove_file.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/repair/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/add_upload.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/get_upload_original.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/linked_client.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/linked_server.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/login.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/time_key.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/upload/update_upload.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/youtube/__init__.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/youtube/build.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/youtube/get.py +0 -0
- {podflow-20250315 → podflow-20250317}/Podflow/youtube/login.py +0 -0
- {podflow-20250315 → podflow-20250317}/README.md +0 -0
- {podflow-20250315 → podflow-20250317}/podflow.egg-info/SOURCES.txt +0 -0
- {podflow-20250315 → podflow-20250317}/podflow.egg-info/dependency_links.txt +0 -0
- {podflow-20250315 → podflow-20250317}/podflow.egg-info/entry_points.txt +0 -0
- {podflow-20250315 → podflow-20250317}/podflow.egg-info/requires.txt +0 -0
- {podflow-20250315 → podflow-20250317}/podflow.egg-info/top_level.txt +0 -0
- {podflow-20250315 → podflow-20250317}/setup.cfg +0 -0
@@ -2,13 +2,14 @@
|
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
4
|
import re
|
5
|
+
from itertools import islice
|
5
6
|
from Podflow.basic.time_print import time_print
|
6
7
|
|
7
8
|
|
8
9
|
def reverse_log(filename):
|
9
10
|
try:
|
10
11
|
with open(f"{filename}.log", "r", encoding="utf-8") as file:
|
11
|
-
lines = file
|
12
|
+
lines = list(islice(file, 10))
|
12
13
|
except Exception:
|
13
14
|
return
|
14
15
|
num = 0
|
@@ -24,8 +25,10 @@ def reverse_log(filename):
|
|
24
25
|
while not date_time(end_num):
|
25
26
|
end_num -= 1
|
26
27
|
if end_num > num and lines[num][:19] > lines[end_num][:19]:
|
27
|
-
|
28
|
-
|
28
|
+
with open(f"{filename}.log", "r", encoding="utf-8") as file:
|
29
|
+
lines = file.readlines()
|
30
|
+
# 反转行的顺序
|
31
|
+
reversed_lines = lines[::-1]
|
29
32
|
with open(f"{filename}.log", "w", encoding="utf-8") as file:
|
30
33
|
file.writelines(reversed_lines)
|
31
34
|
time_print(f"{filename}.log反转成功")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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-20250315 → podflow-20250317}/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
|