Skip to content

Commit

Permalink
2.5.0 (#32)
Browse files Browse the repository at this point in the history
* Add search filters, add AD insta check

* 2.5.0

* add groupby util

* use system ids

* add proper title and biggest size

* add search filter buttons

* update todo
  • Loading branch information
yowmamasita authored Apr 26, 2023
1 parent 7704335 commit eb8b59d
Show file tree
Hide file tree
Showing 9 changed files with 254 additions and 106 deletions.
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
- [✔️] Make the architecture more scalable using docker swarm
- [✔️] Find cached and selectable download on search
- [✔️] 2.3.0: Show AD/RD download buttons even if status=downloaded
- [] 2.5.0: Add instant check in AD on search page (removed due to performance impact)
- [✔️] 2.5.0: Add instant check in AD on search page (removed due to performance impact)
- [] 2.7.0: Rescan library button in all other pages except library
- [] 2.9.0: Add title filter buttons on search page
- [✔️] 2.9.0: Add title filter buttons on search page
- [] 3.0.0: Add tests
- [] 4.0.0: Refactor pages into different components
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "debrid-media-manager",
"version": "2.4.2",
"version": "2.5.0",
"private": false,
"scripts": {
"dev": "next dev",
Expand Down
12 changes: 4 additions & 8 deletions src/pages/hashlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ function TorrentsPage() {
if (rdKey && id.startsWith('rd:')) await deleteTorrent(rdKey, id.substring(3));
if (adKey && id.startsWith('ad:')) await deleteTorrent(adKey, id.substring(3));
if (!disableToast) toast.success(`Download canceled (${id})`);
if (id.startsWith('rd:')) removeFromRdCache(id.substring(3));
if (id.startsWith('ad:')) removeFromAdCache(id.substring(3));
if (id.startsWith('rd:')) removeFromRdCache(id);
if (id.startsWith('ad:')) removeFromAdCache(id);
} catch (error) {
if (!disableToast) toast.error(`Error deleting torrent (${id})`);
throw error;
Expand Down Expand Up @@ -312,7 +312,7 @@ function TorrentsPage() {
{(totalBytes / ONE_GIGABYTE / 1024).toFixed(1)} TB
</title>
</Head>
<Toaster position="top-right" />
<Toaster position="bottom-right" />
<div className="flex justify-between items-center mb-4">
<h1 className="text-3xl font-bold">
Share this page ({userTorrentsList.length} files in total; size:{' '}
Expand Down Expand Up @@ -366,7 +366,7 @@ function TorrentsPage() {
href="/hashlist"
className="mr-2 mb-2 bg-yellow-400 hover:bg-yellow-500 text-black py-2 px-4 rounded"
>
Clear filter
Reset
</Link>
)}
</div>
Expand Down Expand Up @@ -417,10 +417,6 @@ function TorrentsPage() {
groupCount === 1 ? '' : 's'
}`
: '';
console.log(
rd.isDownloaded(t.hash) || ad.isDownloaded(t.hash),
rd.isDownloading(t.hash) || ad.isDownloading(t.hash)
);
return (
<tr
key={t.hash}
Expand Down
8 changes: 4 additions & 4 deletions src/pages/library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ function TorrentsPage() {
if (rdKey && id.startsWith('rd:')) await deleteTorrent(rdKey, id.substring(3));
if (adKey && id.startsWith('ad:')) await deleteMagnet(adKey, id.substring(3));
if (!disableToast) toast.success(`Torrent deleted (${id})`);
if (id.startsWith('rd:')) removeFromRdCache(id.substring(3));
if (id.startsWith('ad:')) removeFromAdCache(id.substring(3));
if (id.startsWith('rd:')) removeFromRdCache(id);
if (id.startsWith('ad:')) removeFromAdCache(id);
} catch (error) {
if (!disableToast) toast.error(`Error deleting torrent (${id})`);
throw error;
Expand Down Expand Up @@ -533,7 +533,7 @@ function TorrentsPage() {
<Head>
<title>Debrid Media Manager - Library</title>
</Head>
<Toaster position="top-right" />
<Toaster position="bottom-right" />
<div className="flex justify-between items-center mb-4">
<h1 className="text-3xl font-bold">
My Library ({userTorrentsList.length} downloads in total; size:{' '}
Expand Down Expand Up @@ -649,7 +649,7 @@ function TorrentsPage() {
: ''
}`}
>
Clear filter
Reset
</Link>
</div>
<div className="overflow-x-auto">
Expand Down
Loading

0 comments on commit eb8b59d

Please sign in to comment.