Skip to content

Commit

Permalink
Fixes #103, empty json data for live info.
Browse files Browse the repository at this point in the history
  • Loading branch information
steampoweredtaco committed Dec 14, 2024
1 parent be7cb0e commit f10debd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions TikTokLiveSharp/Client/Config/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ public static class Constants
/// <summary>
/// User-Agent for WebClients (Http/WebSocket)
/// </summary>
public const string USER_AGENT = "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36";
public const string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36";
/// <summary>
/// Browser version for WebClients parameter (Http/WebSocket)
/// </summary>
public const string BROWSER_VERSION = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36";/// <summary>
/// Default TimeOut for Connections
/// </summary>
public const float DEFAULT_TIMEOUT = 20f;
Expand Down Expand Up @@ -71,7 +74,7 @@ public static class Constants
{ "browser_name", "Mozilla" },
{ "browser_online", true },
{ "browser_platform", "Win32" },
{ "browser_version", USER_AGENT },
{ "browser_version", BROWSER_VERSION },
{ "cookie_enabled", true },
{ "cursor", "" },
{ "internal_ext", "" },
Expand All @@ -92,7 +95,6 @@ public static class Constants
{ "referer", "https, //www.tiktok.com/" },
{ "root_referer", "https, //www.tiktok.com/" },
{ "msToken", "" },
{ "version_code", 180800 },
{ "webcast_sdk_version", "1.3.0" },
{ "update_version_code", "1.3.0" }
});
Expand Down
2 changes: 1 addition & 1 deletion TikTokLiveSharp/TikTokLiveSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<Authors>Frank van Hoof</Authors>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/frankvHoof93/TikTokLiveSharp</PackageProjectUrl>
Expand Down

0 comments on commit f10debd

Please sign in to comment.