more fucking UI fixes
This commit is contained in:
parent
4b3a113fac
commit
d259bc3a8e
Binary file not shown.
Before Width: | Height: | Size: 33 KiB |
@ -3738,8 +3738,10 @@ func formatUptime(duration time.Duration) string {
|
|||||||
|
|
||||||
// QualitiesHandler returns available quality options for a video file
|
// QualitiesHandler returns available quality options for a video file
|
||||||
func (g *Gateway) QualitiesHandler(w http.ResponseWriter, r *http.Request) {
|
func (g *Gateway) QualitiesHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Printf("DEBUG: QualitiesHandler called for URL: %s", r.URL.Path)
|
||||||
vars := mux.Vars(r)
|
vars := mux.Vars(r)
|
||||||
fileHash := vars["hash"]
|
fileHash := vars["hash"]
|
||||||
|
log.Printf("DEBUG: Extracted fileHash: %s", fileHash)
|
||||||
|
|
||||||
if err := g.validateFileHash(fileHash); err != nil {
|
if err := g.validateFileHash(fileHash); err != nil {
|
||||||
g.writeErrorResponse(w, ErrInvalidFileHash, err.Error())
|
g.writeErrorResponse(w, ErrInvalidFileHash, err.Error())
|
||||||
|
BIN
torrent-gateway
BIN
torrent-gateway
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user