Changeset 786


Ignore:
Timestamp:
Aug 15, 2006, 9:38:36 PM (15 years ago)
Author:
joshe
Message:

Try to find a UTF-8 filename in single-file mode too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r758 r786  
    258258        inf->files     = calloc( sizeof( tr_file_t ), 1 );
    259259
    260         val = tr_bencDictFind( beInfo, "name" );
     260        val = tr_bencDictFind( beInfo, "name.utf-8" );
     261        if( NULL == val )
     262        {
     263            val = tr_bencDictFind( beInfo, "name" );
     264        }
    261265        strcatUTF8( inf->files[0].name, val->val.s.s );
    262266        strcatUTF8( inf->name, val->val.s.s );
Note: See TracChangeset for help on using the changeset viewer.