[CHANGE] Update client. Reworked small things
This commit is contained in:
parent
972af513f0
commit
25589d18d8
3 changed files with 168 additions and 143 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using DotBased.Logging;
|
||||
using DotBased.Monads;
|
||||
using Manager.YouTube.Models.Innertube;
|
||||
|
||||
namespace Manager.YouTube.Util.Cipher;
|
||||
|
||||
|
|
@ -8,9 +9,9 @@ public static class CipherManager
|
|||
private static readonly CipherDecoderCollection LoadedCiphers = [];
|
||||
private static readonly ILogger Logger = LogService.RegisterLogger(typeof(CipherManager));
|
||||
|
||||
public static async Task<Result<CipherDecoder>> GetDecoderAsync(YouTubeClient client)
|
||||
public static async Task<Result<CipherDecoder>> GetDecoderAsync(ClientState clientState)
|
||||
{
|
||||
var relativePlayerJsUrl = client.State?.PlayerJsUrl;
|
||||
var relativePlayerJsUrl = clientState.PlayerJsUrl;
|
||||
if (string.IsNullOrEmpty(relativePlayerJsUrl))
|
||||
{
|
||||
return ResultError.Fail("Could not get player js url.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue