update movie db user agent

This commit is contained in:
Luke Pulverenti 2016-01-22 20:58:22 -05:00
parent 55e6db3361
commit 94fdb07925
1 changed files with 3 additions and 2 deletions

View File

@ -163,8 +163,7 @@ namespace MediaBrowser.Providers.Movies
{
Url = string.Format(TmdbConfigUrl, ApiKey),
CancellationToken = cancellationToken,
AcceptHeader = AcceptHeader,
UserAgent = "Emby/" + _appHost.ApplicationVersion
AcceptHeader = AcceptHeader
}).ConfigureAwait(false))
{
@ -391,6 +390,8 @@ namespace MediaBrowser.Providers.Movies
options.ResourcePool = MovieDbResourcePool;
_lastRequestTicks = DateTime.UtcNow.Ticks;
options.UserAgent = "Emby/" + _appHost.ApplicationVersion;
return await _httpClient.Get(options).ConfigureAwait(false);
}