mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 01:01:34 +02:00
much nicer add new series.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Eventing;
|
||||
@@ -19,8 +18,6 @@ namespace NzbDrone.Core.MediaCover
|
||||
|
||||
private readonly string _coverRootFolder;
|
||||
|
||||
private const string COVER_URL_PREFIX = "http://www.thetvdb.com/banners/";
|
||||
|
||||
public MediaCoverService(HttpProvider httpProvider, DiskProvider diskProvider, EnvironmentProvider environmentProvider, Logger logger)
|
||||
{
|
||||
_httpProvider = httpProvider;
|
||||
@@ -54,7 +51,7 @@ namespace NzbDrone.Core.MediaCover
|
||||
var fileName = GetCoverPath(series.Id, cover.CoverType);
|
||||
|
||||
_logger.Info("Downloading {0} for {1}", cover.CoverType, series.Title);
|
||||
_httpProvider.DownloadFile(COVER_URL_PREFIX + cover.Url, fileName);
|
||||
_httpProvider.DownloadFile(cover.Url, fileName);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user