We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf0142 commit 6abc0fbCopy full SHA for 6abc0fb
Controllers/SyncController.cs
@@ -84,14 +84,23 @@ public JsonResult Torrents(long time)
84
{
85
foreach (var torrent in FileDB.OpenRead(item.Key))
86
87
+ var _t = (TorrentDetails)torrent.Value.Clone();
88
+
89
+ var streams = TracksDB.Get(_t.magnet, _t.types);
90
+ if (streams != null)
91
+ {
92
+ _t.ffprobe = streams;
93
+ _t.languages = TracksDB.Languages(_t, streams);
94
+ }
95
96
if (torrents.TryGetValue(torrent.Key, out TorrentDetails val))
97
98
if (torrent.Value.updateTime > val.updateTime)
- torrents[torrent.Key] = torrent.Value;
99
+ torrents[torrent.Key] = _t;
100
}
101
else
102
- torrents.TryAdd(torrent.Key, torrent.Value);
103
+ torrents.TryAdd(torrent.Key, _t);
104
105
106
0 commit comments