mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Added MusicBrainz API project
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Hqub.MusicBrainz.API
|
||||
{
|
||||
public static class Configuration
|
||||
{
|
||||
static Configuration()
|
||||
{
|
||||
GenerateCommunicationThrow = true;
|
||||
Proxy = null;
|
||||
UserAgent = "Hqub.MusicBrainz/2.0";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// If true, then all exceptions for http-requests to MusicBrainz (from class WebRequestHelper) will
|
||||
/// throw up. Otherwise they will be suppressed.
|
||||
/// </summary>
|
||||
public static bool GenerateCommunicationThrow { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a <see cref="System.Net.IWebProxy"/> used to query the webservice.
|
||||
/// </summary>
|
||||
public static IWebProxy Proxy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Allow set cutstom user agent string.
|
||||
/// </summary>
|
||||
public static string UserAgent { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user