mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-18 21:35:27 -04:00
Fixed: RemotePoster on v3 api provides local url rather than thetvdb url
This commit is contained in:
@@ -17,6 +17,7 @@ namespace NzbDrone.Core.MediaCover
|
||||
{
|
||||
public MediaCoverTypes CoverType { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string RemoteUrl { get; set; }
|
||||
|
||||
public MediaCover()
|
||||
{
|
||||
|
||||
@@ -77,7 +77,8 @@ namespace NzbDrone.Core.MediaCover
|
||||
// Series isn't in Sonarr yet, map via a proxy to circument referrer issues
|
||||
foreach (var mediaCover in covers)
|
||||
{
|
||||
mediaCover.Url = _mediaCoverProxy.RegisterUrl(mediaCover.Url);
|
||||
mediaCover.RemoteUrl = mediaCover.Url;
|
||||
mediaCover.Url = _mediaCoverProxy.RegisterUrl(mediaCover.RemoteUrl);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -86,6 +87,7 @@ namespace NzbDrone.Core.MediaCover
|
||||
{
|
||||
var filePath = GetCoverPath(seriesId, mediaCover.CoverType);
|
||||
|
||||
mediaCover.RemoteUrl = mediaCover.Url;
|
||||
mediaCover.Url = _configFileProvider.UrlBase + @"/MediaCover/" + seriesId + "/" + mediaCover.CoverType.ToString().ToLower() + ".jpg";
|
||||
|
||||
if (_diskProvider.FileExists(filePath))
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Sonarr.Api.V3.Series
|
||||
|
||||
if (poster != null)
|
||||
{
|
||||
resource.RemotePoster = poster.Url;
|
||||
resource.RemotePoster = poster.RemoteUrl;
|
||||
}
|
||||
|
||||
resource.Folder = _fileNameBuilder.GetSeriesFolder(currentSeries);
|
||||
|
||||
Reference in New Issue
Block a user