- Add more indepth stats like number of torrents, profile details etc
- Add torrent ingest endpoints - Add issue template
This commit is contained in:
@@ -31,7 +31,6 @@ type File struct {
|
||||
cache *debrid.Cache
|
||||
fileId string
|
||||
torrentName string
|
||||
torrentId string
|
||||
|
||||
modTime time.Time
|
||||
|
||||
@@ -47,7 +46,6 @@ type File struct {
|
||||
|
||||
downloadLink string
|
||||
link string
|
||||
canDelete bool
|
||||
}
|
||||
|
||||
// File interface implementations for File
|
||||
|
||||
@@ -326,7 +326,6 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
},
|
||||
}
|
||||
handler.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
|
||||
func getContentType(fileName string) string {
|
||||
|
||||
@@ -11,16 +11,6 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// getName: Returns the torrent name and filename from the path
|
||||
func getName(rootDir, path string) (string, string) {
|
||||
path = strings.TrimPrefix(path, rootDir)
|
||||
parts := strings.Split(strings.TrimPrefix(path, string(os.PathSeparator)), string(os.PathSeparator))
|
||||
if len(parts) < 2 {
|
||||
return "", ""
|
||||
}
|
||||
return parts[1], strings.Join(parts[2:], string(os.PathSeparator)) // Note the change from [0] to [1]
|
||||
}
|
||||
|
||||
func isValidURL(str string) bool {
|
||||
u, err := url.Parse(str)
|
||||
// A valid URL should parse without error, and have a non-empty scheme and host.
|
||||
|
||||
Reference in New Issue
Block a user