mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
add more methods to file system interface
This commit is contained in:
@@ -498,6 +498,7 @@ namespace MediaBrowser.WebDashboard.Api
|
||||
"livetvnewrecording.js",
|
||||
"livetvprogram.js",
|
||||
"livetvrecording.js",
|
||||
"livetvrecordinglist.js",
|
||||
"livetvrecordings.js",
|
||||
"livetvtimer.js",
|
||||
"livetvseriestimer.js",
|
||||
|
||||
@@ -872,6 +872,47 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets shares from a network device
|
||||
*/
|
||||
self.getNetworkShares = function (path) {
|
||||
|
||||
if (!path) {
|
||||
throw new Error("null path");
|
||||
}
|
||||
|
||||
var options = {};
|
||||
options.path = path;
|
||||
|
||||
var url = self.getUrl("Environment/NetworkShares", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the parent of a given path
|
||||
*/
|
||||
self.getParentPath = function (path) {
|
||||
|
||||
if (!path) {
|
||||
throw new Error("null path");
|
||||
}
|
||||
|
||||
var options = {};
|
||||
options.path = path;
|
||||
|
||||
var url = self.getUrl("Environment/ParentPath", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets a list of physical drives from the server
|
||||
*/
|
||||
|
||||
@@ -154,6 +154,9 @@
|
||||
<Content Include="dashboard-ui\livetvrecording.html">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\livetvrecordinglist.html">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\livetvseriestimer.html">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
@@ -424,6 +427,9 @@
|
||||
<Content Include="dashboard-ui\scripts\livetvrecording.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\scripts\livetvrecordinglist.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\scripts\livetvseriestimer.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.213" targetFramework="net45" />
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.216" targetFramework="net45" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user