mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fill empty title
This commit is contained in:
@@ -111,6 +111,9 @@ func watchTDir(dir string) {
|
||||
tor, err := torr.AddTorrent(sp, "", "", "")
|
||||
if err == nil {
|
||||
if tor.GotInfo() {
|
||||
if tor.Title == "" {
|
||||
tor.Title = tor.Name()
|
||||
}
|
||||
torr.SaveTorrentToDB(tor)
|
||||
tor.Drop()
|
||||
os.Remove(filename)
|
||||
|
||||
Reference in New Issue
Block a user