mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 02:49:05 -07:00
update movie db user agent
This commit is contained in:
parent
636c7cc3ab
commit
468a498768
@ -163,8 +163,7 @@ namespace MediaBrowser.Providers.Movies
|
|||||||
{
|
{
|
||||||
Url = string.Format(TmdbConfigUrl, ApiKey),
|
Url = string.Format(TmdbConfigUrl, ApiKey),
|
||||||
CancellationToken = cancellationToken,
|
CancellationToken = cancellationToken,
|
||||||
AcceptHeader = AcceptHeader,
|
AcceptHeader = AcceptHeader
|
||||||
UserAgent = "Emby/" + _appHost.ApplicationVersion
|
|
||||||
|
|
||||||
}).ConfigureAwait(false))
|
}).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
@ -391,6 +390,8 @@ namespace MediaBrowser.Providers.Movies
|
|||||||
options.ResourcePool = MovieDbResourcePool;
|
options.ResourcePool = MovieDbResourcePool;
|
||||||
_lastRequestTicks = DateTime.UtcNow.Ticks;
|
_lastRequestTicks = DateTime.UtcNow.Ticks;
|
||||||
|
|
||||||
|
options.UserAgent = "Emby/" + _appHost.ApplicationVersion;
|
||||||
|
|
||||||
return await _httpClient.Get(options).ConfigureAwait(false);
|
return await _httpClient.Get(options).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user