Fixed: Added qBittorent state 'moving' (#3847)

* Added qBittorent state 'moving'

The state 'moving' wasn't being recording in Radarr, so it would show up
as a warning.

* Updated unknown state to be info
This commit is contained in:
Jef LeCompte 2019-11-03 21:42:54 -05:00 committed by Devin Buhl
parent ddc2b42923
commit a5e2e5777c

View file

@ -183,13 +183,14 @@ public override IEnumerable<DownloadClientItem> GetItems()
}
break;
case "moving": // torrent is being moved from a folder
case "downloading": // torrent is being downloaded and data is being transfered
item.Status = DownloadItemStatus.Downloading;
break;
default: // new status in API? default to downloading
item.Message = "Unknown download state: " + torrent.State;
_logger.Warn(item.Message);
_logger.Info(item.Message);
item.Status = DownloadItemStatus.Downloading;
break;
}