This commit is contained in:
HuangHai
2026-01-20 19:06:36 +08:00
parent 733ff659fd
commit f2f7a38210
49 changed files with 1470 additions and 0 deletions

15
DouYin/check_headers.py Normal file
View File

@@ -0,0 +1,15 @@
import os
def check_headers(directory):
for filename in os.listdir(directory):
if filename.endswith(".mp4"):
filepath = os.path.join(directory, filename)
try:
with open(filepath, "rb") as f:
header = f.read(16)
print(f"{filename[:30]}... : {header}")
except Exception as e:
print(f"Error reading {filename}: {e}")
check_headers(r"d:\dsWork\aiData\DouYin\DownloadedVideos")