update support for moviedb urls in nfo files
This commit is contained in:
parent
0d28929e17
commit
b9c1f61681
|
@ -106,7 +106,7 @@ namespace Emby.Server.Implementations.Networking
|
|||
endpoint.StartsWith("127.", StringComparison.OrdinalIgnoreCase) ||
|
||||
endpoint.StartsWith("192.168", StringComparison.OrdinalIgnoreCase) ||
|
||||
endpoint.StartsWith("169.", StringComparison.OrdinalIgnoreCase) ||
|
||||
endpoint.StartsWith("10.", StringComparison.OrdinalIgnoreCase) ||
|
||||
//endpoint.StartsWith("10.", StringComparison.OrdinalIgnoreCase) ||
|
||||
IsInPrivateAddressSpaceAndLocalSubnet(endpoint);
|
||||
}
|
||||
|
||||
|
|
|
@ -243,13 +243,13 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
|||
}
|
||||
|
||||
// Support Tmdb
|
||||
// http://www.themoviedb.org/movie/36557
|
||||
// https://www.themoviedb.org/movie/30287-fallo
|
||||
var srch = MovieDbParserSearchString;
|
||||
var index = xml.IndexOf(srch, StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
if (index != -1)
|
||||
{
|
||||
var tmdbId = xml.Substring(index + srch.Length).TrimEnd('/');
|
||||
var tmdbId = xml.Substring(index + srch.Length).TrimEnd('/').Split('-')[0];
|
||||
int value;
|
||||
if (!string.IsNullOrWhiteSpace(tmdbId) && int.TryParse(tmdbId, NumberStyles.Any, CultureInfo.InvariantCulture, out value))
|
||||
{
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.35.2")]
|
||||
[assembly: AssemblyVersion("3.2.36.1")]
|
||||
|
|
Loading…
Reference in New Issue
Block a user