aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryStructureService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-17 16:35:08 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-17 16:35:08 -0500
commit1a9e2dfd83dbab2e9a5f277229c5994253fd8a9a (patch)
tree157ac5c2ee2e226560d04d61fef79445b23c231d /MediaBrowser.Api/Library/LibraryStructureService.cs
parent4ebba2b2e87e33f083c095957a2294b6f8ae3828 (diff)
fixed themoviedb search returning no results
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryStructureService.cs44
1 files changed, 13 insertions, 31 deletions
diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs
index ed086398f..ff4f78c96 100644
--- a/MediaBrowser.Api/Library/LibraryStructureService.cs
+++ b/MediaBrowser.Api/Library/LibraryStructureService.cs
@@ -1,6 +1,5 @@
using MediaBrowser.Common.IO;
using MediaBrowser.Controller;
-using MediaBrowser.Controller.IO;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
@@ -167,32 +166,30 @@ namespace MediaBrowser.Api.Library
public bool RefreshLibrary { get; set; }
}
- [Route("/Library/Changes/New", "POST")]
- public class ReportChangedPath : IReturnVoid
+ [Route("/Library/Downloaded", "POST")]
+ public class ReportContentDownloaded : IReturnVoid
{
- /// <summary>
- /// Gets or sets the name.
- /// </summary>
- /// <value>The name.</value>
- [ApiMember(Name = "Path", Description = "The path that was changed.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
+ [ApiMember(Name = "Path", Description = "The path being downloaded to.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
public string Path { get; set; }
[ApiMember(Name = "ImageUrl", Description = "Optional thumbnail image url of the content.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
public string ImageUrl { get; set; }
+
+ [ApiMember(Name = "Name", Description = "The name of the content.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
+ public string Name { get; set; }
}
- [Route("/Library/Episodes/New", "POST")]
- public class ReportNewEpisode : IReturnVoid
+ [Route("/Library/Downloading", "POST")]
+ public class ReportContentDownloading : IReturnVoid
{
- /// <summary>
- /// Gets or sets the name.
- /// </summary>
- /// <value>The name.</value>
- [ApiMember(Name = "TvdbId", Description = "The tvdb id of the new episode.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
- public string TvdbId { get; set; }
+ [ApiMember(Name = "Path", Description = "The path being downloaded to.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
+ public string Path { get; set; }
[ApiMember(Name = "ImageUrl", Description = "Optional thumbnail image url of the content.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
public string ImageUrl { get; set; }
+
+ [ApiMember(Name = "Name", Description = "The name of the content.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
+ public string Name { get; set; }
}
/// <summary>
@@ -243,21 +240,6 @@ namespace MediaBrowser.Api.Library
}
/// <summary>
- /// Posts the specified request.
- /// </summary>
- /// <param name="request">The request.</param>
- /// <exception cref="System.ArgumentException">Please supply a Path</exception>
- public void Post(ReportChangedPath request)
- {
- if (string.IsNullOrEmpty(request.Path))
- {
- throw new ArgumentException("Please supply a Path");
- }
-
- _libraryMonitor.ReportFileSystemChanged(request.Path);
- }
-
- /// <summary>
/// Gets the specified request.
/// </summary>
/// <param name="request">The request.</param>