mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Remove MediaBrowser.Text since it violates licenses and is overall hacky
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user