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:
@@ -13,6 +13,7 @@ import (
|
|||||||
"github.com/anacrolix/dms/upnpav"
|
"github.com/anacrolix/dms/upnpav"
|
||||||
|
|
||||||
"server/log"
|
"server/log"
|
||||||
|
mt "server/mimetype"
|
||||||
"server/settings"
|
"server/settings"
|
||||||
"server/torr"
|
"server/torr"
|
||||||
"server/torr/state"
|
"server/torr/state"
|
||||||
@@ -224,7 +225,7 @@ func getLink(host, path string) string {
|
|||||||
|
|
||||||
func getObjFromTorrent(path, parent, host string, torr *torr.Torrent, file *state.TorrentFileStat) (ret interface{}) {
|
func getObjFromTorrent(path, parent, host string, torr *torr.Torrent, file *state.TorrentFileStat) (ret interface{}) {
|
||||||
|
|
||||||
mime, err := MimeTypeByPath(file.Path)
|
mime, err := mt.MimeTypeByPath(file.Path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if settings.BTsets.EnableDebug {
|
if settings.BTsets.EnableDebug {
|
||||||
log.TLogln("Can't detect mime type", err)
|
log.TLogln("Can't detect mime type", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user