@ -290,9 +290,15 @@ public class RtorrentAdapter implements IDaemonAdapter {
@@ -290,9 +290,15 @@ public class RtorrentAdapter implements IDaemonAdapter {
// Determine the time added
Dateadded=null;
if(!((String)info[19]).equals(""))
Longaddtime=null;
try{
addtime=Long.valueOf(((String)info[19]).trim());
}catch(NumberFormatExceptione){
// Not a number (timestamp); ignore and fall back to using creationtime
}
if(addtime!=null)
// Successfully received the addtime from rTorrent (which is a String like '1337089336\n')
// rTorrent didn't have the addtime (missing plugin?): base it on creationtime instead
if(info[11]instanceofLong)
@ -303,18 +309,22 @@ public class RtorrentAdapter implements IDaemonAdapter {
@@ -303,18 +309,22 @@ public class RtorrentAdapter implements IDaemonAdapter {