mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Do not assign an invalid value of zero to ExtraType
This commit is contained in:
parent
5fcbedc194
commit
ea306e8f6d
1 changed files with 3 additions and 2 deletions
|
@ -1327,8 +1327,9 @@ namespace MediaBrowser.Controller.Entities
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use some hackery to get the extra type based on foldername
|
// Use some hackery to get the extra type based on foldername
|
||||||
Enum.TryParse(extraFolderName.Replace(" ", ""), true, out ExtraType extraType);
|
item.ExtraType = Enum.TryParse(extraFolderName.Replace(" ", ""), true, out ExtraType extraType)
|
||||||
item.ExtraType = extraType;
|
? extraType
|
||||||
|
: (ExtraType?)null;
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue