Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rogerfar/rdt-client
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerfar committed Dec 12, 2024
2 parents 1a27be8 + adc9760 commit 98c4b2a
Show file tree
Hide file tree
Showing 16 changed files with 633 additions and 10 deletions.
1 change: 1 addition & 0 deletions client/src/app/setup/setup.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<a href="https://www.premiumize.me/" target="_blank" rel="noopener"
>Use this link to sign up to Premiumize.</a
>
<br />
<a href="https://torbox.app/" target="_blank" rel="noopener"
>Use this link to sign up to TorBox.</a>
<br />
Expand Down
17 changes: 17 additions & 0 deletions server/RdtClient.Data/Data/DownloadData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ public async Task UpdateUnrestrictedLink(Guid downloadId, String unrestrictedLin
await TorrentData.VoidCache();
}

public async Task UpdateFileName(Guid downloadId, String fileName)
{
var dbDownload = await dataContext.Downloads
.FirstOrDefaultAsync(m => m.DownloadId == downloadId);

if (dbDownload == null)
{
return;
}

dbDownload.FileName = fileName;

await dataContext.SaveChangesAsync();

await TorrentData.VoidCache();
}

public async Task UpdateDownloadStarted(Guid downloadId, DateTimeOffset? dateTime)
{
var dbDownload = await dataContext.Downloads
Expand Down
Loading

0 comments on commit 98c4b2a

Please sign in to comment.