mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fix to empty list
This commit is contained in:
@@ -136,7 +136,7 @@ func remTorrent(req torrReqJS, c *gin.Context) {
|
|||||||
|
|
||||||
func listTorrent(req torrReqJS, c *gin.Context) {
|
func listTorrent(req torrReqJS, c *gin.Context) {
|
||||||
list := torr.ListTorrent()
|
list := torr.ListTorrent()
|
||||||
if list == nil {
|
if len(list) == 0 {
|
||||||
c.JSON(200, []*state.TorrentStatus{})
|
c.JSON(200, []*state.TorrentStatus{})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user