Fixing registrations bug

This commit is contained in:
Zoe Roux 2020-04-24 02:32:52 +02:00
parent 8b6e24c575
commit 3a0061d379
2 changed files with 7 additions and 2 deletions

View File

@ -32,7 +32,12 @@ namespace Kyoo.Models
public string Thumb; //Used in the API response only
public Episode() { }
public Episode()
{
SeasonNumber = -1;
EpisodeNumber = -1;
AbsoluteNumber = -1;
}
public Episode(long seasonNumber,
long episodeNumber,

View File

@ -70,7 +70,7 @@ namespace Kyoo
List<T> list = first.ToList();
if (isEqual == null)
isEqual = (x, y) => x.Equals(y);
return list.Concat(second.Where(x => !list.Any(y => isEqual(x, y))));
return list.Concat(second.Where(x => !list.Any(y => isEqual(x, y)))).ToList();
}
public static T Complete<T>(T first, T second)