diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-08-14 01:54:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-14 01:54:45 -0400 |
| commit | 7b354c63d2e3cde587e59c38f7b2c661e9a91cab (patch) | |
| tree | 0de3a5b03e2b49360723e2aaf18a5f23b4961650 /MediaBrowser.Controller/Entities/CollectionFolder.cs | |
| parent | 49255561fb4aab64bdf353de80ea444139af5055 (diff) | |
| parent | 89dd4f0be1721ef8f8357051cafea2703ab38b2e (diff) | |
Merge pull request #2054 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller/Entities/CollectionFolder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/CollectionFolder.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs index b81f021da..e120f2e23 100644 --- a/MediaBrowser.Controller/Entities/CollectionFolder.cs +++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs @@ -95,9 +95,19 @@ namespace MediaBrowser.Controller.Entities return System.IO.Path.Combine(path, "options.xml"); } + public void UpdateLibraryOptions(LibraryOptions options) + { + SaveLibraryOptions(Path, options); + } + public static void SaveLibraryOptions(string path, LibraryOptions options) { - XmlSerializer.SerializeToFile(options, GetLibraryOptionsPath(path)); + lock (LibraryOptions) + { + LibraryOptions[path] = options; + + XmlSerializer.SerializeToFile(options, GetLibraryOptionsPath(path)); + } } /// <summary> |
