diff --git a/CHANGELOG.md b/CHANGELOG.md
index f397662..964d9a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.8.8] - 2021-10-21
+### Changed
+- Fixed starting downloads when RealDebrid reports ghost links in torrents.
+
## [1.8.7] - 2021-10-11
### Added
- Add Aria2 test connection button.
diff --git a/client/src/app/navbar/navbar.component.html b/client/src/app/navbar/navbar.component.html
index b891db9..a69d5b3 100644
--- a/client/src/app/navbar/navbar.component.html
+++ b/client/src/app/navbar/navbar.component.html
@@ -55,7 +55,7 @@
Profile
Logout
- Version 1.8.7
+ Version 1.8.8
diff --git a/package.json b/package.json
index 4585228..0ad343c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "rdt-client",
- "version": "1.8.7",
+ "version": "1.8.8",
"description": "This is a web interface to manage your torrents on Real-Debrid.",
"main": "index.js",
"dependencies": {
diff --git a/server/RdtClient.Service/Services/Torrents.cs b/server/RdtClient.Service/Services/Torrents.cs
index c98efda..ca0bcf6 100644
--- a/server/RdtClient.Service/Services/Torrents.cs
+++ b/server/RdtClient.Service/Services/Torrents.cs
@@ -173,15 +173,17 @@ namespace RdtClient.Service.Services
var rdTorrent = await GetRdNetClient().Torrents.GetInfoAsync(torrent.RdId);
+ var torrentLinks = rdTorrent.Links.Where(m => !String.IsNullOrWhiteSpace(m)).ToList();
+
// Sometimes RD will give you 1 rar with all files, sometimes it will give you 1 link per file.
- if (torrent.Files.Count(m => m.Selected) != rdTorrent.Links.Count &&
- torrent.ManualFiles.Count != rdTorrent.Links.Count &&
- rdTorrent.Links.Count != 1)
+ if (torrent.Files.Count(m => m.Selected) != torrentLinks.Count &&
+ torrent.ManualFiles.Count != torrentLinks.Count &&
+ torrentLinks.Count != 1)
{
return;
}
- foreach (var file in rdTorrent.Links)
+ foreach (var file in torrentLinks)
{
// Make sure downloads don't get added multiple times
var downloadExists = await _downloads.Get(torrent.TorrentId, file);
diff --git a/server/RdtClient.Web/RdtClient.Web.csproj b/server/RdtClient.Web/RdtClient.Web.csproj
index 8734e22..d267ee0 100644
--- a/server/RdtClient.Web/RdtClient.Web.csproj
+++ b/server/RdtClient.Web/RdtClient.Web.csproj
@@ -4,7 +4,7 @@
net5.0
Exe
94c24cba-f03f-4453-a671-3640b517c573
- 1.8.7
+ 1.8.8