adjust number of simultaneous requests
This commit is contained in:
parent
f546f09c71
commit
a7f7892294
|
@ -911,12 +911,12 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The remove
|
/// The remove
|
||||||
/// </summary>
|
/// </summary>
|
||||||
const string remove = "\"'!`?";
|
const string Remove = "\"'!`?";
|
||||||
// "Face/Off" support.
|
// "Face/Off" support.
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The spacers
|
/// The spacers
|
||||||
/// </summary>
|
/// </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>
|
/// <summary>
|
||||||
/// The replace start numbers
|
/// The replace start numbers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -996,11 +996,11 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||||
{
|
{
|
||||||
// skip char modifier and diacritics
|
// skip char modifier and diacritics
|
||||||
}
|
}
|
||||||
else if (remove.IndexOf(c) > -1)
|
else if (Remove.IndexOf(c) > -1)
|
||||||
{
|
{
|
||||||
// skip chars we are removing
|
// skip chars we are removing
|
||||||
}
|
}
|
||||||
else if (spacers.IndexOf(c) > -1)
|
else if (Spacers.IndexOf(c) > -1)
|
||||||
{
|
{
|
||||||
sb.Append(" ");
|
sb.Append(" ");
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||||
{
|
{
|
||||||
public class OpenMovieDatabaseProvider : BaseMetadataProvider
|
public class OpenMovieDatabaseProvider : BaseMetadataProvider
|
||||||
{
|
{
|
||||||
private readonly SemaphoreSlim _resourcePool = new SemaphoreSlim(1, 1);
|
private readonly SemaphoreSlim _resourcePool = new SemaphoreSlim(2, 2);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the json serializer.
|
/// Gets the json serializer.
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The tv db
|
/// The tv db
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal readonly SemaphoreSlim TvDbResourcePool = new SemaphoreSlim(1, 1);
|
internal readonly SemaphoreSlim TvDbResourcePool = new SemaphoreSlim(2, 2);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the current.
|
/// Gets the current.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user