[CHANGE] Reworked parsers/converters. Decipher operation from script do not work!

This commit is contained in:
max
2025-10-24 00:23:09 +02:00
parent de28591d24
commit a84195aefa
18 changed files with 285 additions and 77 deletions

View File

@@ -14,7 +14,7 @@ public static class VideoJsonParser
public static Result<YouTubeVideo> ParseVideoData(YouTubeVideoData videoData)
{
if (videoData.YouTubeInitialData == null || videoData.YouTubeInitialData.Count == 0)
if (videoData.YouTubePlayerData == null)
{
return ResultError.Fail("No initial video data found!");
}
@@ -22,7 +22,7 @@ public static class VideoJsonParser
YouTubeVideo? video;
try
{
video = videoData.YouTubeInitialData.Deserialize<YouTubeVideo>(VideoParserOptions);
video = videoData.YouTubePlayerData.Deserialize<YouTubeVideo>(VideoParserOptions);
}
catch (Exception e)
{