@ -493,12 +493,15 @@ public class TransmissionAdapter implements IDaemonAdapter {
@@ -493,12 +493,15 @@ public class TransmissionAdapter implements IDaemonAdapter {
if ( ! commentString . equals ( "" ) ) {
errorString = errorString . equals ( "" ) ? commentString : errorString + "\n" + commentString ;
}
String locationDir = tor . getString ( RPC_DOWNLOADDIR ) ;
if ( ! locationDir . endsWith ( settings . getOS ( ) . getPathSeperator ( ) ) )
locationDir + = settings . getOS ( ) . getPathSeperator ( ) ;
torrents . add ( new Torrent (
tor . getInt ( RPC_ID ) ,
null ,
tor . getString ( RPC_NAME ) ,
hasError ? TorrentStatus . Error : getStatus ( tor . getInt ( RPC_STATUS ) ) ,
tor . getS tr ing ( RPC_ DOWNLOADDIR ) + sett ings . getOS ( ) . getPathSepe rator ( ) ,
loca tion Dir,
tor . getInt ( RPC_RATEDOWNLOAD ) ,
tor . getInt ( RPC_RATEUPLOAD ) ,
tor . getInt ( RPC_PEERSGETTING ) ,