updated servicestack to 3.9.44

This commit is contained in:
Luke Pulverenti
2013-05-07 09:06:01 -04:00
parent 049ffa2b4e
commit 2818d8ccd2
30 changed files with 4904 additions and 1353 deletions

View File

@@ -975,8 +975,8 @@ namespace MediaBrowser.Controller.Providers.Movies
boxset.OfficialRating = firstChild != null ? firstChild.OfficialRating : null;
}
if (movie.RunTimeTicks == null && movieData.runtime > 0)
movie.RunTimeTicks = TimeSpan.FromMinutes(movieData.runtime).Ticks;
//if (movie.RunTimeTicks == null && movieData.runtime > 0)
// movie.RunTimeTicks = TimeSpan.FromMinutes(movieData.runtime).Ticks;
//studios
if (movieData.production_companies != null)

View File

@@ -55,15 +55,18 @@ namespace MediaBrowser.Controller.Providers.Music
// Try to find the id using last fm
var result = await FindIdFromLastFm(item, cancellationToken).ConfigureAwait(false);
if (!string.IsNullOrEmpty(result.Item1))
if (result != null)
{
return result.Item1;
}
if (!string.IsNullOrEmpty(result.Item1))
{
return result.Item1;
}
// If there were no artists returned at all, then don't bother with musicbrainz
if (!result.Item2)
{
return null;
// If there were no artists returned at all, then don't bother with musicbrainz
if (!result.Item2)
{
return null;
}
}
try

View File

@@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.Providers.Music
/// </summary>
public abstract class LastfmBaseProvider : BaseMetadataProvider
{
protected static readonly SemaphoreSlim LastfmResourcePool = new SemaphoreSlim(5, 5);
protected static readonly SemaphoreSlim LastfmResourcePool = new SemaphoreSlim(4, 4);
/// <summary>
/// Initializes a new instance of the <see cref="LastfmBaseProvider" /> class.