mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Update list.go
This commit is contained in:
@@ -173,6 +173,7 @@ func getObjFromTorrent(path, parent, host string, torr *torr.Torrent, file *stat
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// TODO: handle subtitles for media
|
||||||
if !mime.IsMedia() {
|
if !mime.IsMedia() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -181,7 +182,7 @@ func getObjFromTorrent(path, parent, host string, torr *torr.Torrent, file *stat
|
|||||||
}
|
}
|
||||||
|
|
||||||
obj := upnpav.Object{
|
obj := upnpav.Object{
|
||||||
ID: url.PathEscape(parent + "/" + file.Path),
|
ID: parent + "%2F" + url.PathEscape(file.Path),
|
||||||
ParentID: parent,
|
ParentID: parent,
|
||||||
Title: file.Path,
|
Title: file.Path,
|
||||||
Class: "object.item." + mime.Type() + "Item",
|
Class: "object.item." + mime.Type() + "Item",
|
||||||
|
|||||||
Reference in New Issue
Block a user