From 84684434103c008006ffb6804a2af8e3a0b1ed78 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 22 Jan 2016 20:58:22 -0500 Subject: [PATCH] update movie db user agent --- MediaBrowser.Providers/Movies/MovieDbProvider.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Providers/Movies/MovieDbProvider.cs index f7e4142fa..593c6f180 100644 --- a/MediaBrowser.Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Providers/Movies/MovieDbProvider.cs @@ -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); }