Menu

#66 Auto_register on, but not updating

closed
Tracker (27)
5
2008-11-21
2008-05-30
CobraCRK
No

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

Discussion

  • CobraCRK

    CobraCRK - 2008-05-30

    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...

     
  • Floxxx

    Floxxx - 2008-07-10

    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.

     
  • Olaf van der Spek

    • labels: --> Tracker
    • assigned_to: nobody --> olafvdspek
    • status: open --> pending
     
  • Olaf van der Spek

    If auto register is enabled, you should not insert into xbt_files yourself.

     
  • SourceForge Robot

    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).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Auth0 Logo