mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
fixes #943 - Add web client filtering by genres, parental ratings, tags and years
This commit is contained in:
parent
1a80362a0f
commit
95eaf88abd
7 changed files with 182 additions and 70 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue