mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
fixes #943 - Add web client filtering by genres, parental ratings, tags and years
This commit is contained in:
@@ -398,14 +398,16 @@ namespace MediaBrowser.Common.Implementations.IO
|
||||
throw new ArgumentNullException("path");
|
||||
}
|
||||
|
||||
//if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 &&
|
||||
// !path.StartsWith("file://", StringComparison.OrdinalIgnoreCase))
|
||||
//{
|
||||
// return false;
|
||||
//}
|
||||
//return true;
|
||||
// Cannot use Path.IsPathRooted because it returns false under mono when using windows-based paths, e.g. C:\\
|
||||
|
||||
return Path.IsPathRooted(path);
|
||||
if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 &&
|
||||
!path.StartsWith("file://", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
//return Path.IsPathRooted(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user