]> granicus.if.org Git - transmission/commitdiff
(libT) ensure that .torrents and stats aren't lost when migrating to 1.30 from <...
authorCharles Kerr <charles@transmissionbt.com>
Fri, 25 Jul 2008 19:55:09 +0000 (19:55 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Fri, 25 Jul 2008 19:55:09 +0000 (19:55 +0000)
libtransmission/session.c

index 24736398bda30c38f2cff5069e5cee45458e95c5..acac09f456cc68f39a398d067577ec36f1c44c43 100644 (file)
@@ -592,14 +592,12 @@ tr_sessionLoadTorrents ( tr_handle   * h,
                 tr_torrent * tor;
                 char filename[MAX_PATH_LENGTH];
                 tr_buildPath( filename, sizeof(filename), dirname, d->d_name, NULL );
-                if( tr_stringEndsWith( filename, ".torrent" ) )
-                {
-                    tr_ctorSetMetainfoFromFile( ctor, filename );
-                    tor = tr_torrentNew( h, ctor, NULL );
-                    if( tor ) {
-                        tr_list_append( &list, tor );
-                        ++n;
-                    }
+
+                tr_ctorSetMetainfoFromFile( ctor, filename );
+                tor = tr_torrentNew( h, ctor, NULL );
+                if( tor ) {
+                    tr_list_append( &list, tor );
+                    ++n;
                 }
             }
         }