fix
This commit is contained in:
parent
7e059b8564
commit
9c08f113e3
|
@ -40,14 +40,14 @@ class S:
|
|||
def proc(self):
|
||||
prj = {
|
||||
"src_id": 1,
|
||||
"src_id_h264": 1
|
||||
"src_id_720": 1
|
||||
}
|
||||
docs = self.col_video.find({}, projection=prj)
|
||||
for d in docs[:100]:
|
||||
vid = safe_get_int(d, "_id")
|
||||
src_id_h264 = safe_get_str(d, "src_id_h264")
|
||||
url = host + src_id_h264
|
||||
if len(src_id_h264) > 0:
|
||||
src_id_720 = safe_get_str(d, "src_id_720")
|
||||
url = host + src_id_720
|
||||
if len(src_id_720) > 0:
|
||||
print(vid, url)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue