Changeset 1119 for trunk/libtransmission


Ignore:
Timestamp:
Nov 23, 2006, 1:38:18 AM (15 years ago)
Author:
livings124
Message:

add support in libT and the mac interface for displaying comment, creator, and date created

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r1101 r1119  
    191191    }
    192192    snprintf( inf->trackerAnnounce, MAX_PATH_LENGTH, "%s", s2 );
     193   
     194    /* Comment info */
     195    if( ( val = tr_bencDictFind( &meta, "comment" ) ) )
     196    {
     197        strcatUTF8( inf->comment, val->val.s.s );
     198    }
     199   
     200    /* Creator info */
     201    if( ( val = tr_bencDictFind( &meta, "created by" ) ) )
     202    {
     203        strcatUTF8( inf->creator, val->val.s.s );
     204    }
     205   
     206    /* Date created */
     207    if( ( val = tr_bencDictFind( &meta, "creation date" ) ) )
     208    {
     209        inf->dateCreated = val->val.i;
     210    }
    193211
    194212    /* Piece length */
  • trunk/libtransmission/transmission.h

    r1064 r1119  
    319319    int         trackerPort;
    320320    char        trackerAnnounce[MAX_PATH_LENGTH];
     321   
     322    /* Torrent info */
     323    char        comment[MAX_PATH_LENGTH];
     324    char        creator[MAX_PATH_LENGTH];
     325    int         dateCreated;
    321326
    322327    /* Pieces info */
Note: See TracChangeset for help on using the changeset viewer.