Update metadata.py

This commit is contained in:
midoks
2019-01-11 02:17:54 +08:00
parent e0b5956ad5
commit 7627ba6f4b
+2 -2
View File
@@ -136,9 +136,9 @@ def save_metadata(dbcurr, binhash, address, start_time, data, blacklist):
try:
try:
print '\n', 'Saved', info['info_hash'], info['name'], (time.time() - start_time), 's', address[0], geoip.country_name_by_addr(address[0]),
print '\n', 'Saved', utcnow, info['info_hash'], info['name'], (time.time() - start_time), 's', address[0], geoip.country_name_by_addr(address[0]),
except:
print '\n', 'Saved', info['info_hash'], sys.exc_info()[1]
print '\n', 'Saved', utcnow, info['info_hash'], sys.exc_info()[1]
try:
ret = dbcurr.execute('INSERT INTO search_hash(info_hash,category,data_hash,name,extension,classified,source_ip,tagged,' +
'length,create_time,last_seen,requests,comment,creator) VALUES(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)',