make model project portable
This commit is contained in:
@@ -6,6 +6,7 @@ using MediaBrowser.Model.MediaInfo;
|
||||
using MediaBrowser.Model.Session;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
@@ -483,7 +484,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
if (!string.IsNullOrEmpty(transcodingProfile.MaxAudioChannels))
|
||||
{
|
||||
int transcodingMaxAudioChannels;
|
||||
if (IntHelper.TryParseCultureInvariant(transcodingProfile.MaxAudioChannels, out transcodingMaxAudioChannels))
|
||||
if (int.TryParse(transcodingProfile.MaxAudioChannels, NumberStyles.Any, CultureInfo.InvariantCulture, out transcodingMaxAudioChannels))
|
||||
{
|
||||
playlistItem.TranscodingMaxAudioChannels = transcodingMaxAudioChannels;
|
||||
}
|
||||
@@ -1039,7 +1040,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.AudioBitrate:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.AudioBitrate = num;
|
||||
}
|
||||
@@ -1048,7 +1049,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.AudioChannels:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.MaxAudioChannels = num;
|
||||
}
|
||||
@@ -1069,7 +1070,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.RefFrames:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.MaxRefFrames = num;
|
||||
}
|
||||
@@ -1078,7 +1079,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.VideoBitDepth:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.MaxVideoBitDepth = num;
|
||||
}
|
||||
@@ -1092,7 +1093,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.Height:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.MaxHeight = num;
|
||||
}
|
||||
@@ -1101,7 +1102,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.VideoBitrate:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.VideoBitrate = num;
|
||||
}
|
||||
@@ -1119,7 +1120,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.VideoLevel:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.VideoLevel = num;
|
||||
}
|
||||
@@ -1128,7 +1129,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
case ProfileConditionValue.Width:
|
||||
{
|
||||
int num;
|
||||
if (IntHelper.TryParseCultureInvariant(value, out num))
|
||||
if (int.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||||
{
|
||||
item.MaxWidth = num;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user