Update TorrentFreeboxDownload.cs

- Tabs removal (or trying)
- Modif if remotemovie is not null
This commit is contained in:
Foireatout 2026-04-13 14:25:31 +02:00 committed by GitHub
parent 6d5342051c
commit d300760a4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,21 +130,21 @@ public override IEnumerable<DownloadClientItem> GetItems()
protected override string AddFromMagnetLink(RemoteMovie remoteMovie, string hash, string magnetLink)
{
return _proxy.AddTaskFromUrl(magnetLink,
GetDownloadDirectory(remoteMovie).EncodeBase64(),
ToBePaused(),
ToBeQueuedFirst(remoteMovie),
GetSeedRatio(remoteMovie),
Settings);
GetDownloadDirectory(remoteMovie).EncodeBase64(),
ToBePaused(),
ToBeQueuedFirst(remoteMovie),
GetSeedRatio(remoteMovie),
Settings);
}
protected override string AddFromTorrentFile(RemoteMovie remoteMovie, string hash, string filename, byte[] fileContent)
{
return _proxy.AddTaskFromFile(filename,
fileContent,
GetDownloadDirectory(remoteMovie).EncodeBase64(),
ToBePaused(),
ToBeQueuedFirst(remoteMovie),
GetSeedRatio(remoteMovie),
Settings);
fileContent,
GetDownloadDirectory(remoteMovie).EncodeBase64(),
ToBePaused(),
ToBeQueuedFirst(remoteMovie),
GetSeedRatio(remoteMovie),
Settings);
}
public override void RemoveItem(DownloadClientItem item, bool deleteData)
{
@ -204,7 +204,7 @@ private string GetDownloadDirectory(RemoteMovie remoteMovie = null)
if (remoteMovie != null)
{
var folderName = remoteMovie.Release.Title.Replace("/", "-").Replace("\\", "-");
var folderName = FileNameExtensions.CleanFileName(remoteMovie.Release.Title);
destDir = $"{destDir}/{folderName}";
}