mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
store dvd episode numbers as floats to match tvdb
This commit is contained in:
parent
3c9b0a1fb6
commit
3c53aca46b
@ -49,7 +49,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
|||||||
/// Gets or sets the DVD episode number.
|
/// Gets or sets the DVD episode number.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The DVD episode number.</value>
|
/// <value>The DVD episode number.</value>
|
||||||
public int? DvdEpisodeNumber { get; set; }
|
public float? DvdEpisodeNumber { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// We want to group into series not show individually in an index
|
/// We want to group into series not show individually in an index
|
||||||
|
@ -43,7 +43,7 @@ namespace MediaBrowser.Model.Dto
|
|||||||
/// Gets or sets the DVD episode number.
|
/// Gets or sets the DVD episode number.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The DVD episode number.</value>
|
/// <value>The DVD episode number.</value>
|
||||||
public int? DvdEpisodeNumber { get; set; }
|
public float? DvdEpisodeNumber { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name of the sort.
|
/// Gets or sets the name of the sort.
|
||||||
|
@ -153,7 +153,7 @@ namespace MediaBrowser.Providers.TV
|
|||||||
|
|
||||||
if (float.TryParse(number, NumberStyles.Any, UsCulture, out num))
|
if (float.TryParse(number, NumberStyles.Any, UsCulture, out num))
|
||||||
{
|
{
|
||||||
item.DvdEpisodeNumber = Convert.ToInt32(num);
|
item.DvdEpisodeNumber = num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -414,7 +414,7 @@ namespace MediaBrowser.Providers.TV
|
|||||||
|
|
||||||
if (float.TryParse(val, NumberStyles.Any, _usCulture, out num))
|
if (float.TryParse(val, NumberStyles.Any, _usCulture, out num))
|
||||||
{
|
{
|
||||||
item.DvdEpisodeNumber = Convert.ToInt32(num);
|
item.DvdEpisodeNumber = num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user