This commit is contained in:
lwl0608 2024-09-14 01:32:34 +08:00
parent 7e059b8564
commit 9c08f113e3
1 changed files with 4 additions and 4 deletions

View File

@ -40,14 +40,14 @@ class S:
def proc(self): def proc(self):
prj = { prj = {
"src_id": 1, "src_id": 1,
"src_id_h264": 1 "src_id_720": 1
} }
docs = self.col_video.find({}, projection=prj) docs = self.col_video.find({}, projection=prj)
for d in docs[:100]: 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_720 = safe_get_str(d, "src_id_720")
url = host + src_id_h264 url = host + src_id_720
if len(src_id_h264) > 0: if len(src_id_720) > 0:
print(vid, url) print(vid, url)