diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-04-13 14:38:19 +0900 |
|---|---|---|
| committer | dkanada <dkanada@users.noreply.github.com> | 2020-04-13 14:38:19 +0900 |
| commit | cb2523e2efb3c91862e035c1ce969e6d069775cd (patch) | |
| tree | cc74c5ac997fe67ed2f4dcd0f9fcb789212122e9 /MediaBrowser.Api/Library/LibraryStructureService.cs | |
| parent | ff065df9863f30a4eec52a95d260cdadcced7b1e (diff) | |
| parent | 9a0a4575adbba04b6b7f3294e70175a98b864a90 (diff) | |
merge branch master into plugin
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryStructureService.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs index c071b42f7..1e300814f 100644 --- a/MediaBrowser.Api/Library/LibraryStructureService.cs +++ b/MediaBrowser.Api/Library/LibraryStructureService.cs @@ -327,15 +327,11 @@ namespace MediaBrowser.Api.Library try { - var mediaPath = request.PathInfo; - - if (mediaPath == null) + var mediaPath = request.PathInfo ?? new MediaPathInfo { - mediaPath = new MediaPathInfo - { - Path = request.Path - }; - } + Path = request.Path + }; + _libraryManager.AddMediaPath(request.Name, mediaPath); } finally |
