mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-08 02:34:19 -04:00
Find links by absolute path first
This commit is contained in:
parent
e06ca0983e
commit
fe11b15a00
@ -1362,14 +1362,10 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
//this should be functionally equivilent to what was here since it is IEnum and works on a thread-safe copy
|
//this should be functionally equivilent to what was here since it is IEnum and works on a thread-safe copy
|
||||||
return RecursiveChildren.Where(i => i.LocationType != LocationType.Virtual).FirstOrDefault(i =>
|
return RecursiveChildren.Where(i => i.LocationType != LocationType.Virtual).FirstOrDefault(i =>
|
||||||
{
|
{
|
||||||
if (i.LocationType == LocationType.Remote)
|
|
||||||
{
|
|
||||||
return string.Equals(i.Path, path, StringComparison.OrdinalIgnoreCase);
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return i.ResolveArgs.PhysicalLocations.Contains(path, StringComparer.OrdinalIgnoreCase);
|
return string.Equals(i.Path, path, StringComparison.OrdinalIgnoreCase)
|
||||||
|
|| i.ResolveArgs.PhysicalLocations.Contains(path, StringComparer.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user