Ignore:
Timestamp:
Dec 22, 2007, 6:43:40 PM (15 years ago)
Author:
livings124
Message:

remove ctor from torrent creation and parse functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r4281 r4287  
    14881488    {
    14891489        tr_ctorSetMetainfoFromHash(ctor, [hashString UTF8String]);
    1490         if (tr_torrentParseFromCtor(fLib, ctor, &info) == TR_OK)
     1490        if (tr_torrentParse(fLib, ctor, &info) == TR_OK)
    14911491        {
    14921492            NSString * currentDownloadFolder = [self shouldUseIncompleteFolderForName: [NSString stringWithUTF8String: info.name]]
    1493                                         ? fIncompleteFolder : fDownloadFolder;
     1493                                                ? fIncompleteFolder : fDownloadFolder;
    14941494            tr_ctorSetDestination(ctor, TR_FORCE, [currentDownloadFolder UTF8String]);
    14951495           
     
    15011501    {
    15021502        tr_ctorSetMetainfoFromFile(ctor, [path UTF8String]);
    1503         if (tr_torrentParseFromCtor(fLib, ctor, &info) == TR_OK)
     1503        if (tr_torrentParse(fLib, ctor, &info) == TR_OK)
    15041504        {
    15051505            NSString * currentDownloadFolder = [self shouldUseIncompleteFolderForName: [NSString stringWithUTF8String: info.name]]
    1506                                         ? fIncompleteFolder : fDownloadFolder;
     1506                                                ? fIncompleteFolder : fDownloadFolder;
    15071507            tr_ctorSetDestination(ctor, TR_FORCE, [currentDownloadFolder UTF8String]);
    15081508           
Note: See TracChangeset for help on using the changeset viewer.