Merge pull request #2915 from randrey/imdbid-length-fix
Fix imdbid regex
(cherry picked from commit 6f866a7fdc)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
committed by
Joshua M. Boniface
parent
16d9318e08
commit
77f72dc607
@@ -203,8 +203,8 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
|
||||
protected void ParseProviderLinks(T item, string xml)
|
||||
{
|
||||
//Look for a match for the Regex pattern "tt" followed by 7 digits
|
||||
var m = Regex.Match(xml, @"tt([0-9]{7})", RegexOptions.IgnoreCase);
|
||||
// Look for a match for the Regex pattern "tt" followed by 7 or 8 digits
|
||||
var m = Regex.Match(xml, "tt([0-9]{7,8})", RegexOptions.IgnoreCase);
|
||||
if (m.Success)
|
||||
{
|
||||
item.SetProviderId(MetadataProviders.Imdb, m.Value);
|
||||
|
||||
Reference in New Issue
Block a user