🐛 implement PR suggestions
This commit is contained in:
parent
7902f56d66
commit
d6d1813340
3 changed files with 8 additions and 6 deletions
|
|
@ -13,9 +13,9 @@ public enum Provider
|
||||||
[Description("Premiumize")]
|
[Description("Premiumize")]
|
||||||
Premiumize,
|
Premiumize,
|
||||||
|
|
||||||
[Description("DebridLinkFr")]
|
|
||||||
DebridLinkFr,
|
|
||||||
|
|
||||||
[Description("TorBox")]
|
[Description("TorBox")]
|
||||||
TorBox
|
TorBox,
|
||||||
|
|
||||||
|
[Description("DebridLinkFr")]
|
||||||
|
DebridLinkFr
|
||||||
}
|
}
|
||||||
|
|
@ -99,6 +99,7 @@ public class Torrent
|
||||||
AllDebrid,
|
AllDebrid,
|
||||||
Premiumize,
|
Premiumize,
|
||||||
RealDebrid,
|
RealDebrid,
|
||||||
TorBox
|
TorBox,
|
||||||
|
DebridLink
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -78,7 +78,7 @@ public class DebridLinkFrClient : ITorrentClient
|
||||||
Added = DateTimeOffset.FromUnixTimeSeconds(torrent.Created),
|
Added = DateTimeOffset.FromUnixTimeSeconds(torrent.Created),
|
||||||
Files = (torrent.Files ?? new List<TorrentFile>()).Select((m, i) => new TorrentClientFile
|
Files = (torrent.Files ?? new List<TorrentFile>()).Select((m, i) => new TorrentClientFile
|
||||||
{
|
{
|
||||||
Path = m.Name ?? "",
|
Path = m.Name,
|
||||||
Bytes = m.Size,
|
Bytes = m.Size,
|
||||||
Id = i,
|
Id = i,
|
||||||
Selected = true
|
Selected = true
|
||||||
|
|
@ -197,6 +197,7 @@ public class DebridLinkFrClient : ITorrentClient
|
||||||
torrent.RdFiles = JsonConvert.SerializeObject(rdTorrent.Files);
|
torrent.RdFiles = JsonConvert.SerializeObject(rdTorrent.Files);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
torrent.ClientKind = Data.Models.Data.Torrent.TorrentClientKind.DebridLink;
|
||||||
torrent.RdHost = rdTorrent.Host;
|
torrent.RdHost = rdTorrent.Host;
|
||||||
torrent.RdSplit = rdTorrent.Split;
|
torrent.RdSplit = rdTorrent.Split;
|
||||||
torrent.RdProgress = rdTorrent.Progress;
|
torrent.RdProgress = rdTorrent.Progress;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue