mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
refactored Episode, Added Quality Enum
This commit is contained in:
@@ -5,19 +5,9 @@ namespace NzbDrone.Core.Providers
|
||||
{
|
||||
class HttpProvider : IHttpProvider
|
||||
{
|
||||
public string GetRequest(string request)
|
||||
public string DownloadString(string request)
|
||||
{
|
||||
//Get the request and return as String Array
|
||||
try
|
||||
{
|
||||
var webClient = new WebClient();
|
||||
return webClient.DownloadString(request);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
return String.Empty;
|
||||
}
|
||||
return new WebClient().DownloadString(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user