[CHANGE] Updated cipher implementation and added decipher function

This commit is contained in:
max
2025-10-23 19:45:36 +02:00
parent 41f880cfef
commit e87e1c57f9
2 changed files with 37 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ public static class CipherManager
private static readonly CipherDecoderCollection LoadedCiphers = [];
private static readonly ILogger Logger = LogService.RegisterLogger(typeof(CipherManager));
public static async Task<Result<CipherDecoder>> GetDecoder(YouTubeClient client)
public static async Task<Result<CipherDecoder>> GetDecoderAsync(YouTubeClient client)
{
var relativePlayerJsUrl = client.State?.PlayerJsUrl;
if (string.IsNullOrEmpty(relativePlayerJsUrl))