mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-11 09:13:54 -04:00
only search with path name if file system based
This commit is contained in:
parent
efbfb1ea02
commit
0d6f6ad698
@ -500,7 +500,7 @@ namespace MediaBrowser.Controller.Providers.Movies
|
|||||||
id = await AttemptFindId(name, year, "en", cancellationToken).ConfigureAwait(false);
|
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
|
//last resort - try using the actual folder name
|
||||||
id = await AttemptFindId(Path.GetFileName(item.ResolveArgs.Path), year, "en", cancellationToken).ConfigureAwait(false);
|
id = await AttemptFindId(Path.GetFileName(item.ResolveArgs.Path), year, "en", cancellationToken).ConfigureAwait(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user