mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 03:03:40 +01:00
Add latest translations
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using System;
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Updates
|
||||
@@ -39,7 +38,18 @@ namespace MediaBrowser.Model.Updates
|
||||
[IgnoreDataMember]
|
||||
public Version version
|
||||
{
|
||||
get { return _version ?? (_version = new Version(versionStr.ValueOrDefault("0.0.0.1"))); }
|
||||
get { return _version ?? (_version = new Version(ValueOrDefault(versionStr, "0.0.0.1"))); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Values the or default.
|
||||
/// </summary>
|
||||
/// <param name="str">The STR.</param>
|
||||
/// <param name="def">The def.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
private static string ValueOrDefault(string str, string def = "")
|
||||
{
|
||||
return string.IsNullOrEmpty(str) ? def : str;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user