adjust number of simultaneous requests

This commit is contained in:
Luke Pulverenti 2013-05-23 11:40:20 -04:00
parent f546f09c71
commit a7f7892294
3 changed files with 6 additions and 6 deletions

View file

@ -911,12 +911,12 @@ namespace MediaBrowser.Controller.Providers.Movies
/// <summary>
/// The remove
/// </summary>
const string remove = "\"'!`?";
const string Remove = "\"'!`?";
// "Face/Off" support.
/// <summary>
/// The spacers
/// </summary>
const string spacers = "/,.:;\\(){}[]+-_=*"; // (there are not actually two - in the they are different char codes)
const string Spacers = "/,.:;\\(){}[]+-_=*"; // (there are not actually two - in the they are different char codes)
/// <summary>
/// The replace start numbers
/// </summary>
@ -996,11 +996,11 @@ namespace MediaBrowser.Controller.Providers.Movies
{
// skip char modifier and diacritics
}
else if (remove.IndexOf(c) > -1)
else if (Remove.IndexOf(c) > -1)
{
// skip chars we are removing
}
else if (spacers.IndexOf(c) > -1)
else if (Spacers.IndexOf(c) > -1)
{
sb.Append(" ");
}

View file

@ -15,7 +15,7 @@ namespace MediaBrowser.Controller.Providers.Movies
{
public class OpenMovieDatabaseProvider : BaseMetadataProvider
{
private readonly SemaphoreSlim _resourcePool = new SemaphoreSlim(1, 1);
private readonly SemaphoreSlim _resourcePool = new SemaphoreSlim(2, 2);
/// <summary>
/// Gets the json serializer.

View file

@ -35,7 +35,7 @@ namespace MediaBrowser.Controller.Providers.TV
/// <summary>
/// The tv db
/// </summary>
internal readonly SemaphoreSlim TvDbResourcePool = new SemaphoreSlim(1, 1);
internal readonly SemaphoreSlim TvDbResourcePool = new SemaphoreSlim(2, 2);
/// <summary>
/// Gets the current.