mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Limit imdbid to 8 digits.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user