Explorar el Código

only search with path name if file system based

Luke Pulverenti hace 12 años
padre
commit
0d6f6ad698
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs

+ 1 - 1
MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs

@@ -500,7 +500,7 @@ namespace MediaBrowser.Controller.Providers.Movies
                         id = await AttemptFindId(name, year, "en", cancellationToken).ConfigureAwait(false);
 
                     }
-                    if (id == null)
+                    if (id == null && item.LocationType == LocationType.FileSystem)
                     {
                         //last resort - try using the actual folder name
                         id = await AttemptFindId(Path.GetFileName(item.ResolveArgs.Path), year, "en", cancellationToken).ConfigureAwait(false);