mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
update movie db user agent
This commit is contained in:
parent
636c7cc3ab
commit
468a498768
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue