Ignore:
Timestamp:
Dec 2, 2006, 1:46:54 AM (15 years ago)
Author:
joshe
Message:

Merge scrape branch:

Automatically scrape trackers as needed.
If tracker supplies a trackerid then use it (untested).
Use tracker's min interval, clamped to the same range as interval.
Show total completed downloads in the MacOS X frontend.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1125 r1149  
    182182        [fSeedersField setStringValue: @""];
    183183        [fLeechersField setStringValue: @""];
     184        [fCompletedFromTrackerField setStringValue: @""];
    184185        [fConnectedPeersField setStringValue: @""];
    185186        [fDownloadingFromField setStringValue: @""];
     
    327328    Torrent * torrent = [fTorrents objectAtIndex: 0];
    328329   
    329     int seeders = [torrent seeders], leechers = [torrent leechers];
     330    int seeders = [torrent seeders], leechers = [torrent leechers], downloaded = [torrent completedFromTracker];
    330331    [fSeedersField setStringValue: seeders < 0 ? @"" : [NSString stringWithInt: seeders]];
    331332    [fLeechersField setStringValue: leechers < 0 ? @"" : [NSString stringWithInt: leechers]];
     333    [fCompletedFromTrackerField setStringValue: downloaded < 0 ? @"" : [NSString stringWithInt: downloaded]];
    332334   
    333335    BOOL active = [torrent isActive];
Note: See TracChangeset for help on using the changeset viewer.