fix tmdbid override for movies

This commit is contained in:
Luke Pulverenti 2013-12-01 13:58:06 -05:00
parent b827f4058d
commit e191836ea0

View File

@ -172,7 +172,7 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
private void SetProviderIdFromPath(Video item) private void SetProviderIdFromPath(Video item)
{ {
//we need to only look at the name of this actual item (not parents) //we need to only look at the name of this actual item (not parents)
var justName = Path.GetFileName(item.Path); var justName = item.IsInMixedFolder ? Path.GetFileName(item.Path) : Path.GetFileName(Path.GetDirectoryName(item.Path));
var id = justName.GetAttributeValue("tmdbid"); var id = justName.GetAttributeValue("tmdbid");