mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-12-11 04:37:57 -06:00
Merge pull request #5282 from Ombi-app/multipart
fix(emby): 🐛 Skip very large multipart episodes
This commit is contained in:
commit
10dd02198c
@ -138,6 +138,7 @@ namespace Ombi.Schedule.Jobs.Emby
|
||||
|
||||
while (processed < total)
|
||||
{
|
||||
_logger.LogInformation($"Processing chunk {processed}/{total}");
|
||||
// Process episodes in current chunk
|
||||
foreach (var ep in allEpisodes.Items)
|
||||
{
|
||||
@ -186,6 +187,14 @@ namespace Ombi.Schedule.Jobs.Emby
|
||||
|
||||
if (ep.IndexNumberEnd.HasValue && ep.IndexNumberEnd.Value != ep.IndexNumber)
|
||||
{
|
||||
var episodeFillCount = ep.IndexNumberEnd.Value - ep.IndexNumber;
|
||||
|
||||
if (episodeFillCount > 50)
|
||||
{
|
||||
_logger.LogWarning($"Episode {ep.Name} has {episodeFillCount} episodes! Skipping.");
|
||||
continue;
|
||||
}
|
||||
|
||||
int episodeNumber = ep.IndexNumber;
|
||||
do
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user