PmsService
PmsService copied to clipboard
Unable to create mapped drive at root
When attempting to create a mapped drive within the Plex Media Service Settings tray utility, it does not appear to allow the creation of a mapped drive without a share folder in the UNC.
Example:
- \MyServer\Videos -- GOOD!
- \MyServer\ -- Does not allow save
My media is currently mapped off P:\ which is the root of my NAS. TV: P:\Shared Videos\TV Movies: P:\Shared Videos\Movies
The reason is the RegEx at this line.
I think if you change it to:
[RegularExpression(@"^\\\\[a-zA-Z0-9\.\-_]{1,}(\\[a-zA-Z0-9\.\x20\-_]{1,}[\$]{0,1}){0,1}$", ErrorMessage = "Please enter a valid UNC path")]
It will work, but it'll need tested/validated. The change being {0,1} instead of {1,}