mirror of https://github.com/jellyfin/jellyfin.git
update dialogs
This commit is contained in:
parent
ec79879aeb
commit
0b13c335be
|
@ -248,8 +248,7 @@ namespace MediaBrowser.Dlna
|
||||||
//_logger.Debug("IsMatch-Substring value: {0} testValue: {1} isMatch: {2}", value, header.Value, isMatch);
|
//_logger.Debug("IsMatch-Substring value: {0} testValue: {1} isMatch: {2}", value, header.Value, isMatch);
|
||||||
return isMatch;
|
return isMatch;
|
||||||
case HeaderMatchType.Regex:
|
case HeaderMatchType.Regex:
|
||||||
// Reports of IgnoreCase not working on linux so try it a couple different ways.
|
return Regex.IsMatch(value, header.Value, RegexOptions.IgnoreCase);
|
||||||
return Regex.IsMatch(value, header.Value, RegexOptions.IgnoreCase) || Regex.IsMatch(value.ToUpper(), header.Value.ToUpper(), RegexOptions.IgnoreCase);
|
|
||||||
default:
|
default:
|
||||||
throw new ArgumentException("Unrecognized HeaderMatchType");
|
throw new ArgumentException("Unrecognized HeaderMatchType");
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@ namespace MediaBrowser.Dlna.Profiles
|
||||||
new HttpHeaderInfo
|
new HttpHeaderInfo
|
||||||
{
|
{
|
||||||
Name = "User-Agent",
|
Name = "User-Agent",
|
||||||
Value = @".*(SEC_HHP_\[TV\] [A-Z]{2}\d{2}J[A-Z]?\d{3,4})*.",
|
Value = @"SEC_",
|
||||||
Match = HeaderMatchType.Regex
|
Match = HeaderMatchType.Substring
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -349,4 +349,4 @@ namespace MediaBrowser.Dlna.Profiles
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
<Identification>
|
<Identification>
|
||||||
<ModelUrl>samsung.com</ModelUrl>
|
<ModelUrl>samsung.com</ModelUrl>
|
||||||
<Headers>
|
<Headers>
|
||||||
<HttpHeaderInfo name="User-Agent" value=".*(SEC_HHP_\[TV\] [A-Z]{2}\d{2}J[A-Z]?\d{3,4})*." match="Regex" />
|
<HttpHeaderInfo name="User-Agent" value="SEC_" match="Substring" />
|
||||||
</Headers>
|
</Headers>
|
||||||
</Identification>
|
</Identification>
|
||||||
<Manufacturer>Emby</Manufacturer>
|
<Manufacturer>Emby</Manufacturer>
|
||||||
|
|
Loading…
Reference in New Issue