Merge branch 'master' into old-engine

This commit is contained in:
nikk gitanes
2023-03-11 08:22:17 +03:00
5 changed files with 11 additions and 5 deletions

View File

@@ -2,12 +2,14 @@ package api
import (
"github.com/gin-gonic/gin"
"net/url"
"server/rutor"
"server/rutor/models"
)
func rutorSearch(c *gin.Context) {
query := c.Query("query")
query, _ = url.QueryUnescape(query)
list := rutor.Search(query)
if list == nil {
list = []*models.TorrentDetails{}