diff --git a/.vs/MediaBrowser.Plugins.Anime/v15/sqlite3/storage.ide b/.vs/MediaBrowser.Plugins.Anime/v15/sqlite3/storage.ide new file mode 100644 index 0000000..f86d7a6 Binary files /dev/null and b/.vs/MediaBrowser.Plugins.Anime/v15/sqlite3/storage.ide differ diff --git a/MediaBrowser.Plugins.Anime/AsyncLock.cs b/MediaBrowser.Plugins.Anime/AsyncLock.cs index 9a81f97..eaf94e6 100644 --- a/MediaBrowser.Plugins.Anime/AsyncLock.cs +++ b/MediaBrowser.Plugins.Anime/AsyncLock.cs @@ -12,7 +12,7 @@ namespace MediaBrowser.Plugins.Anime private static readonly Task Completed = Task.FromResult(true); private readonly Queue> _waiters = new Queue>(); private int _currentCount; - + public AsyncSemaphore(int initialCount) { if (initialCount < 0) throw new ArgumentOutOfRangeException("initialCount"); @@ -66,7 +66,7 @@ namespace MediaBrowser.Plugins.Anime Task wait = _semaphore.WaitAsync(); return wait.IsCompleted ? _releaser - : wait.ContinueWith((_, state) => new Releaser((AsyncLock) state), + : wait.ContinueWith((_, state) => new Releaser((AsyncLock)state), this, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default); } diff --git a/MediaBrowser.Plugins.Anime/Configuration/PluginConfiguration.cs b/MediaBrowser.Plugins.Anime/Configuration/PluginConfiguration.cs index c8f8087..974ab9d 100644 --- a/MediaBrowser.Plugins.Anime/Configuration/PluginConfiguration.cs +++ b/MediaBrowser.Plugins.Anime/Configuration/PluginConfiguration.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using MediaBrowser.Model.Plugins; +using MediaBrowser.Model.Plugins; namespace MediaBrowser.Plugins.Anime.Configuration { @@ -21,6 +18,11 @@ namespace MediaBrowser.Plugins.Anime.Configuration /// Use titles in Japanese romaji. /// JapaneseRomaji, + + /// + /// Use titles in German. + /// + German, } public class PluginConfiguration @@ -32,6 +34,8 @@ namespace MediaBrowser.Plugins.Anime.Configuration public int MaxGenres { get; set; } public bool AddAnimeGenre { get; set; } public bool UseAnidbOrderingWithSeasons { get; set; } + public string MyAnimeList_API_Name { get; set; } + public string MyAnimeList_API_Pw { get; set; } public PluginConfiguration() { @@ -41,6 +45,8 @@ namespace MediaBrowser.Plugins.Anime.Configuration MaxGenres = 5; AddAnimeGenre = true; UseAnidbOrderingWithSeasons = false; + MyAnimeList_API_Name = ""; + MyAnimeList_API_Pw = ""; } } -} +} \ No newline at end of file diff --git a/MediaBrowser.Plugins.Anime/Configuration/configPage.html b/MediaBrowser.Plugins.Anime/Configuration/configPage.html index a1343cc..18ff112 100644 --- a/MediaBrowser.Plugins.Anime/Configuration/configPage.html +++ b/MediaBrowser.Plugins.Anime/Configuration/configPage.html @@ -18,6 +18,7 @@ +
  • @@ -36,13 +37,25 @@ - + +
  • +
  • + + +
  • +
  • + +
  • - +
  • @@ -52,12 +65,12 @@ - +