mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
refactored Episode, Added Quality Enum
This commit is contained in:
parent
01c1943d0e
commit
a49850cc89
12 changed files with 240 additions and 270 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue