Auto_register on, but not updating
Brought to you by:
olafvdspek
Hi,
I add into the xbt_files table a new row, with a torrent.
It writes to DB every 30minutes, and auto_register is on.
The torrent i have into the db, is not updated...dunno why, it just doesn't update, i belive it just tries to insert a new row, instead of the update.
How can i make it to update the torrent, if it allready exists in the DB, and it also registers with the trackeru automaticaly?
Thanks
Logged In: YES
user_id=1108638
Originator: YES
I think it's from the lines:
if (!file.fid)
{
q = "insert into ? (info_hash, mtime, ctime) values (?, unix_timestamp(), unix_timestamp())";
q.p_name(table_name(table_files));
q.p(i->first);
q.execute();
file.fid = m_database.insert_id();
}
Wich would insert it, if it wasn't inserted before( no FID ), at least that's what i can understand...
Logged In: YES
user_id=2143295
Originator: NO
Maybe a stupid question, but did you set flags to 2? flags needs to be 2 to update the tracker, and 1 to have the torrent deleted from the tracker.
If auto register is enabled, you should not insert into xbt_files yourself.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).