Remove immediate bin

This commit is contained in:
Ben Adrian Sarmiento
2024-06-18 23:43:31 +02:00
parent 34a7d6a432
commit acc9b69b5a
8 changed files with 58 additions and 87 deletions

View File

@@ -35,7 +35,6 @@ type RootResponse struct {
PID int `json:"pid"` // Process ID
Sponsor SponsorResponse `json:"sponsor_zurg"` // Sponsorship links
Config config.ZurgConfig `json:"config"`
ImmediateBin []string `json:"immediate_bin"`
OnceDoneBin []string `json:"once_done_bin"`
}
@@ -87,9 +86,8 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) {
Github: "https://github.com/sponsors/debridmediamanager",
Paypal: "https://paypal.me/yowmamasita",
},
Config: zr.cfg.GetConfig(),
ImmediateBin: zr.torMgr.ImmediateBin.ToSlice(),
OnceDoneBin: zr.torMgr.OnceDoneBin.ToSlice(),
Config: zr.cfg.GetConfig(),
OnceDoneBin: zr.torMgr.OnceDoneBin.ToSlice(),
}
out := `<table border="1px">
@@ -272,11 +270,7 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) {
<td>%v</td>
</tr>
<tr>
<td>Immediate Bin</td>
<td colspan="2">%v</td>
</tr>
<tr>
<td>Once Done Bin</td>
<td>IDs to be deleted once download completes</td>
<td colspan="2">%v</td>
</tr>
<tr>
@@ -367,7 +361,6 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) {
response.Config.ShouldServeFromRclone(),
response.Config.ShouldForceIPv6(),
response.Config.GetOnLibraryUpdate(),
response.ImmediateBin,
response.OnceDoneBin,
)