mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
more post process dn titles
This commit is contained in:
@@ -92,6 +92,8 @@ func addTorrent(req torrReqJS, c *gin.Context) {
|
|||||||
if tor.Title == "" {
|
if tor.Title == "" {
|
||||||
tor.Title = torrSpec.DisplayName // prefer dn over name
|
tor.Title = torrSpec.DisplayName // prefer dn over name
|
||||||
tor.Title = strings.ReplaceAll(tor.Title, "rutor.info", "")
|
tor.Title = strings.ReplaceAll(tor.Title, "rutor.info", "")
|
||||||
|
tor.Title = strings.ReplaceAll(tor.Title, "_", " ")
|
||||||
|
tor.Title = strings.Trim(tor.Title, " ")
|
||||||
if tor.Title == "" {
|
if tor.Title == "" {
|
||||||
tor.Title = tor.Name()
|
tor.Title = tor.Name()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user