mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update metadata.py
This commit is contained in:
@@ -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)',
|
||||
|
||||
Reference in New Issue
Block a user