Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/92f273cb0cd94923be25b6b69147eeb9b86749b0 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Limit imdbid to 8 digits.

pull/2915/head
randrey 5 years ago
parent d7a71cee3c
commit 92f273cb0c

@ -39,7 +39,7 @@ namespace Emby.Server.Implementations.Library
// for imdbid we also accept pattern matching
if (string.Equals(attrib, "imdbid", StringComparison.OrdinalIgnoreCase))
{
var m = Regex.Match(str, "tt\\d{7,}", RegexOptions.IgnoreCase);
var m = Regex.Match(str, "tt\\d{7,8}", RegexOptions.IgnoreCase);
return m.Success ? m.Value : null;
}

@ -208,8 +208,8 @@ namespace MediaBrowser.XbmcMetadata.Parsers
protected void ParseProviderLinks(T item, string xml)
{
// Look for a match for the Regex pattern "tt" followed by 7 or more digits
var m = Regex.Match(xml, @"tt(\d{7,})", RegexOptions.IgnoreCase);
// Look for a match for the Regex pattern "tt" followed by 7 or 8 digits
var m = Regex.Match(xml, @"tt(\d{7,8})", RegexOptions.IgnoreCase);
if (m.Success)
{
item.SetProviderId(MetadataProviders.Imdb, m.Value);

Loading…
Cancel
Save