Remove MediaBrowser.Text since it violates licenses and is overall hacky

This commit is contained in:
cvium
2019-01-16 20:50:40 +01:00
committed by Claus Vium
parent 3a5e3ade01
commit b35dcbb9f0
129 changed files with 81 additions and 12173 deletions

View File

@@ -23,7 +23,6 @@ using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Cryptography;
using MediaBrowser.Model.Text;
namespace OpenSubtitlesHandler
{
@@ -34,8 +33,6 @@ namespace OpenSubtitlesHandler
{
public static ICryptoProvider CryptographyProvider { get; set; }
public static IHttpClient HttpClient { get; set; }
public static ITextEncoding EncodingHelper { get; set; }
private static string XML_RPC_SERVER = "https://api.opensubtitles.org/xml-rpc";
//private static string XML_RPC_SERVER = "https://92.240.234.122/xml-rpc";
private static string HostHeader = "api.opensubtitles.org:443";
@@ -125,13 +122,13 @@ namespace OpenSubtitlesHandler
data.Add((byte)r);
}
var bytes = data.ToArray();
return EncodingHelper.GetASCIIEncoding().GetString(bytes, 0, bytes.Length);
return Encoding.ASCII.GetString(bytes, 0, bytes.Length);
}
}
public static byte[] GetASCIIBytes(string text)
{
return EncodingHelper.GetASCIIEncoding().GetBytes(text);
return Encoding.ASCII.GetBytes(text);
}
/// <summary>