jellyfin-plugin-mergeversions icon indicating copy to clipboard operation
jellyfin-plugin-mergeversions copied to clipboard

Merges all episodes of a series as a single one with many versions on some edge-cases

Open rubasace opened this issue 3 years ago • 1 comments

On some scenarios, the plugin merges all episodes as a single one.

I'm not 100% sure but it seems to happen when the plugin is scheduled to merge at the same time as a series is being scanned for the first time. I think the plugin is not making sure that the episode is fully scanned and, when grouping, all episodes report the same (unexistent???) data for episode number, causing the plugin to set all episodes as a single group:

var duplications = episodes.GroupBy(x => new {x.SeriesName,x.SeasonName, x.Name,x.IndexNumber, x.ProductionYear }).Where(x => x.Count() > 1).ToList();

I believe a filter should be applied to the episodes to either check if all the fields have been set or if they have been scanned.

rubasace avatar Feb 23 '23 13:02 rubasace

This happened to me, all my series got merged into single episodes. Dashboard and Library were not showing a library scan.

nitschis avatar Sep 20 '23 06:09 nitschis