From 35f693e709398589257e4c7bb7c453199f6996a6 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 30 Jan 2014 00:20:18 -0500 Subject: [PATCH] fixes #672 - Support path mapping --- dashboard-ui/css/librarybrowser.css | 2 +- dashboard-ui/library.html | 2 +- dashboard-ui/librarypathmapping.html | 40 ++++++++- dashboard-ui/librarysettings.html | 2 +- dashboard-ui/scripts/directorybrowser.js | 9 +- dashboard-ui/scripts/librarypathmapping.js | 100 ++++++++++++++++++++- dashboard-ui/scripts/medialibrarypage.js | 2 + 7 files changed, 147 insertions(+), 10 deletions(-) diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 8973a8550..5eec8dc9f 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -790,7 +790,7 @@ a.itemTag:hover { @media all and (min-width: 1920px) { .ehsContent { - max-width: 1240px; + max-width: 1260px; } } diff --git a/dashboard-ui/library.html b/dashboard-ui/library.html index 47258a1e0..f4b84f813 100644 --- a/dashboard-ui/library.html +++ b/dashboard-ui/library.html @@ -10,7 +10,7 @@
diff --git a/dashboard-ui/librarypathmapping.html b/dashboard-ui/librarypathmapping.html index 0fd82729a..03d465f38 100644 --- a/dashboard-ui/librarypathmapping.html +++ b/dashboard-ui/librarypathmapping.html @@ -10,12 +10,48 @@
-
+
+

Path substitutions are used for mapping a path on the server to a path that clients are able to access. By allowing clients direct access to media on the server they may be able to play them directly over the network and avoid using server resources to stream and transcode them.

+
+ + + + + + + + + + +
FromTo
+ +
+ + + +
+

Add Substitution

+
+ + +
Example: D:\Movies (on the server)
+
+
+
+ + +
Example: \\MyServer\Movies (a path clients can access)
+
+
+

+ +

+
diff --git a/dashboard-ui/librarysettings.html b/dashboard-ui/librarysettings.html index 279a504f7..299b6d34d 100644 --- a/dashboard-ui/librarysettings.html +++ b/dashboard-ui/librarysettings.html @@ -10,7 +10,7 @@
diff --git a/dashboard-ui/scripts/directorybrowser.js b/dashboard-ui/scripts/directorybrowser.js index 33b5c105f..c9ec9f232 100644 --- a/dashboard-ui/scripts/directorybrowser.js +++ b/dashboard-ui/scripts/directorybrowser.js @@ -91,7 +91,7 @@ } options.header = options.header || "Select Media Path"; - options.instruction = options.instruction || "Any path will do, but for optimal playback of bluray, dvd folders, and games, network paths (UNC) are recommended."; + options.instruction = options.instruction || ""; var html = '