Skip to content

Commit 7ce8f79

Browse files
committed
fix
1 parent 82b67ef commit 7ce8f79

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

Controllers/ApiController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ List<ffStream> FFprobe(TorrentDetails t, out HashSet<string> langs)
522522
i.quality,
523523
i.voices,
524524
seasons = i.seasons != null && i.seasons.Count > 0 ? i.seasons : null,
525-
i.types,
526-
i.checkTime
525+
i.types
527526
}
528527
}),
529528
jacred = true

Engine/FileDB/FileDB.cs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -309,31 +309,23 @@ long getSizeInfo(string sizeName)
309309
{
310310
foreach (string v in ukrVoices)
311311
{
312-
try
312+
if (t.voices.Contains(v))
313313
{
314-
if (v.Length > 3 && titlelower.Contains(v.ToLower()))
315-
{
316-
t.languages.Add("ukr");
317-
break;
318-
}
314+
t.languages.Add("ukr");
315+
break;
319316
}
320-
catch { }
321317
}
322318
}
323319

324320
if (!t.languages.Contains("rus"))
325321
{
326322
foreach (string v in rusVoices)
327323
{
328-
try
324+
if (t.voices.Contains(v))
329325
{
330-
if (v.Length > 3 && titlelower.Contains(v.ToLower()))
331-
{
332-
t.languages.Add("rus");
333-
break;
334-
}
326+
t.languages.Add("rus");
327+
break;
335328
}
336-
catch { }
337329
}
338330
}
339331
#endregion

Engine/Tracks/TracksCron.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async public static Task Run(int typetask)
102102
if (TracksDB.Get(t.Value.magnet) == null)
103103
{
104104
_ = TracksDB.Add(t.Value.magnet);
105-
await Task.Delay(typetask == 3 || typetask == 4 ? 800 : 2000);
105+
await Task.Delay(2000);
106106
}
107107
}
108108
catch { }

0 commit comments

Comments
 (0)