mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Handle download data diskstation (#744)
* Delete data manually after finished seeding * Removed try/catch
This commit is contained in:
parent
7a86c78896
commit
dadf6708ab
2 changed files with 7 additions and 10 deletions
|
@ -117,16 +117,13 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation
|
||||||
|
|
||||||
public override void RemoveItem(string downloadId, bool deleteData)
|
public override void RemoveItem(string downloadId, bool deleteData)
|
||||||
{
|
{
|
||||||
try
|
if (deleteData)
|
||||||
{
|
{
|
||||||
_proxy.RemoveTorrent(ParseDownloadId(downloadId), deleteData, Settings);
|
DeleteItemData(downloadId);
|
||||||
|
}
|
||||||
|
|
||||||
|
_proxy.RemoveTorrent(ParseDownloadId(downloadId), Settings);
|
||||||
_logger.Debug("{0} removed correctly", downloadId);
|
_logger.Debug("{0} removed correctly", downloadId);
|
||||||
return;
|
|
||||||
}
|
|
||||||
catch (DownloadClientException e)
|
|
||||||
{
|
|
||||||
_logger.Error(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected OsPath GetOutputPath(OsPath outputPath, DownloadStationTorrent torrent, string serialNumber)
|
protected OsPath GetOutputPath(OsPath outputPath, DownloadStationTorrent torrent, string serialNumber)
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation.Proxies
|
||||||
{
|
{
|
||||||
IEnumerable<DownloadStationTorrent> GetTorrents(DownloadStationSettings settings);
|
IEnumerable<DownloadStationTorrent> GetTorrents(DownloadStationSettings settings);
|
||||||
Dictionary<string, object> GetConfig(DownloadStationSettings settings);
|
Dictionary<string, object> GetConfig(DownloadStationSettings settings);
|
||||||
void RemoveTorrent(string downloadId, bool deleteData, DownloadStationSettings settings);
|
void RemoveTorrent(string downloadId, DownloadStationSettings settings);
|
||||||
void AddTorrentFromUrl(string url, string downloadDirectory, DownloadStationSettings settings);
|
void AddTorrentFromUrl(string url, string downloadDirectory, DownloadStationSettings settings);
|
||||||
void AddTorrentFromData(byte[] torrentData, string filename, string downloadDirectory, DownloadStationSettings settings);
|
void AddTorrentFromData(byte[] torrentData, string filename, string downloadDirectory, DownloadStationSettings settings);
|
||||||
IEnumerable<int> GetApiVersion(DownloadStationSettings settings);
|
IEnumerable<int> GetApiVersion(DownloadStationSettings settings);
|
||||||
|
@ -99,7 +99,7 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation.Proxies
|
||||||
return response.Data;
|
return response.Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveTorrent(string downloadId, bool deleteData, DownloadStationSettings settings)
|
public void RemoveTorrent(string downloadId, DownloadStationSettings settings)
|
||||||
{
|
{
|
||||||
var arguments = new Dictionary<string, object>
|
var arguments = new Dictionary<string, object>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue