This commit is contained in:
lwl0608 2024-09-14 01:31:37 +08:00
parent 7bd38e9387
commit 7e059b8564
1 changed files with 3 additions and 2 deletions

View File

@ -43,10 +43,11 @@ class S:
"src_id_h264": 1 "src_id_h264": 1
} }
docs = self.col_video.find({}, projection=prj) docs = self.col_video.find({}, projection=prj)
for d in docs[:10]: for d in docs[:100]:
vid = safe_get_int(d, "_id") vid = safe_get_int(d, "_id")
src_id_h264 = safe_get_str(d, "src_id_h264") src_id_h264 = safe_get_str(d, "src_id_h264")
url = host + src_id_h264 url = host + src_id_h264
if len(src_id_h264) > 0:
print(vid, url) print(vid, url)