Spaces:
Paused
Paused
Upload 20 files
Browse files- app.py +0 -15
- static/app.js +0 -11
app.py
CHANGED
|
@@ -386,14 +386,6 @@ def effective_state_label(torrent, state_entry: dict | None = None) -> str:
|
|
| 386 |
if state_entry and state_entry.get("gofile_uploading"):
|
| 387 |
return "GoFile Upload"
|
| 388 |
|
| 389 |
-
if state_entry and state_entry.get("gofile_link"):
|
| 390 |
-
raw_state = getattr(torrent, "state", "")
|
| 391 |
-
progress = float(getattr(torrent, "progress", 0) or 0)
|
| 392 |
-
upspeed = int(getattr(torrent, "upspeed", 0) or 0)
|
| 393 |
-
provider = state_entry.get("gofile_provider", "Remote Upload")
|
| 394 |
-
if progress >= 1 and raw_state in {"uploading", "stalledUP", "pausedUP", "queuedUP", "checkingUP"} and upspeed <= 0:
|
| 395 |
-
return f"{provider} Ready"
|
| 396 |
-
|
| 397 |
raw_state = getattr(torrent, "state", "")
|
| 398 |
progress = float(getattr(torrent, "progress", 0) or 0)
|
| 399 |
|
|
@@ -416,13 +408,6 @@ def effective_status_badge(torrent, state_entry: dict | None = None) -> str:
|
|
| 416 |
if state_entry and state_entry.get("gofile_uploading"):
|
| 417 |
return "border-sky-500/30 bg-sky-500/10 text-sky-100"
|
| 418 |
|
| 419 |
-
if state_entry and state_entry.get("gofile_link"):
|
| 420 |
-
raw_state = getattr(torrent, "state", "")
|
| 421 |
-
progress = float(getattr(torrent, "progress", 0) or 0)
|
| 422 |
-
upspeed = int(getattr(torrent, "upspeed", 0) or 0)
|
| 423 |
-
if progress >= 1 and raw_state in {"uploading", "stalledUP", "pausedUP", "queuedUP", "checkingUP"} and upspeed <= 0:
|
| 424 |
-
return "border-sky-500/30 bg-sky-500/10 text-sky-100"
|
| 425 |
-
|
| 426 |
raw_state = getattr(torrent, "state", "")
|
| 427 |
progress = float(getattr(torrent, "progress", 0) or 0)
|
| 428 |
upspeed = int(getattr(torrent, "upspeed", 0) or 0)
|
|
|
|
| 386 |
if state_entry and state_entry.get("gofile_uploading"):
|
| 387 |
return "GoFile Upload"
|
| 388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
raw_state = getattr(torrent, "state", "")
|
| 390 |
progress = float(getattr(torrent, "progress", 0) or 0)
|
| 391 |
|
|
|
|
| 408 |
if state_entry and state_entry.get("gofile_uploading"):
|
| 409 |
return "border-sky-500/30 bg-sky-500/10 text-sky-100"
|
| 410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
raw_state = getattr(torrent, "state", "")
|
| 412 |
progress = float(getattr(torrent, "progress", 0) or 0)
|
| 413 |
upspeed = int(getattr(torrent, "upspeed", 0) or 0)
|
static/app.js
CHANGED
|
@@ -101,17 +101,6 @@
|
|
| 101 |
};
|
| 102 |
}
|
| 103 |
|
| 104 |
-
if (torrent.gofile_link && !torrent.gofile_uploading) {
|
| 105 |
-
return {
|
| 106 |
-
dotClass: "bg-sky-300",
|
| 107 |
-
dotStyle: "background-color: #7dd3fc;",
|
| 108 |
-
text: "text-sky-200",
|
| 109 |
-
pillClass: "text-sky-100",
|
| 110 |
-
pillStyle: "background-color: rgba(56, 189, 248, 0.18); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.22);",
|
| 111 |
-
label: torrent.state_label || "Remote Ready",
|
| 112 |
-
};
|
| 113 |
-
}
|
| 114 |
-
|
| 115 |
const label = normalizeStateLabel(torrent.state_label);
|
| 116 |
if (label.includes("stalled up")) {
|
| 117 |
return {
|
|
|
|
| 101 |
};
|
| 102 |
}
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
const label = normalizeStateLabel(torrent.state_label);
|
| 105 |
if (label.includes("stalled up")) {
|
| 106 |
return {
|