Fixed invalid torrent titles in dlna

This commit is contained in:
Snap
2022-04-27 23:06:51 +03:00
parent 325f1fb5d7
commit c84321824e

View File

@@ -55,7 +55,7 @@ func getTorrents() (ret []interface{}) {
ID: "%2F" + t.TorrentSpec.InfoHash.HexString(), ID: "%2F" + t.TorrentSpec.InfoHash.HexString(),
ParentID: "%2FTR", ParentID: "%2FTR",
Restricted: 1, Restricted: 1,
Title: t.Title, Title: strings.ReplaceAll(t.Title, "/", "|"),
Class: "object.container.storageFolder", Class: "object.container.storageFolder",
Icon: t.Poster, Icon: t.Poster,
AlbumArtURI: t.Poster, AlbumArtURI: t.Poster,