File tree Expand file tree Collapse file tree
frontend/src/Manage/Status Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 LinearProgress ,
88 LinearProgressProps ,
99 IconButton ,
10+ Link ,
1011} from '@mui/material'
1112import PlayArrowIcon from '@mui/icons-material/PlayArrow'
1213import PauseIcon from '@mui/icons-material/Pause'
@@ -147,7 +148,21 @@ export const StatusItem = ({
147148 } }
148149 >
149150 < ListItemText
150- primary = { separateWords ( torrent . name ) }
151+ primary = {
152+ < Link
153+ href = { torrent . detailsUrl }
154+ underline = "hover"
155+ color = "inherit"
156+ sx = { {
157+ display : 'block' ,
158+ '&:hover' : {
159+ color : 'primary.main' ,
160+ } ,
161+ } }
162+ >
163+ { separateWords ( torrent . name ) }
164+ </ Link >
165+ }
151166 secondary = {
152167 < LinearProgressWithLabel
153168 variant = "determinate"
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ export interface Torrent {
99 | 'error'
1010 | 'complete'
1111 | 'queued'
12+ detailsUrl ?: string
1213}
Original file line number Diff line number Diff line change 11[project ]
22name = " CDMServer"
3- version = " 2.8.2 "
3+ version = " 2.9.0 "
44description = " A short description of your project"
55authors = [{name = " Aron Radics" , email = " radics.aron.jozsef@gmail.com" }]
66requires-python = " >=3.13"
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 11from copy import copy
22from fastapi .responses import JSONResponse
33from fastapi import APIRouter , Depends
4+ from ncoreparser import get_torrent_page_url
45from service .util .auth import manager
56from service .models .api import TorrentStatusData , InstructionsData
67from service .models .database import (
@@ -72,4 +73,5 @@ def dump_torrent(torrent: TorrentStatus) -> dict:
7273 eta = torrent .eta ,
7374 downloadDir = torrent .download_dir ,
7475 totalSize = torrent .total_size ,
76+ detailsUrl = get_torrent_page_url (torrent_id = str (torrent .tracker_id )) if torrent .tracker_id else None ,
7577 ).model_dump ()
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ class TorrentStatusData(BaseData):
121121 eta : int | None
122122 downloadDir : str
123123 totalSize : int
124+ detailsUrl : str | None = None
124125
125126
126127class StatusDataItem (BaseData ):
You can’t perform that action at this time.
0 commit comments