Skip to content

Commit

Permalink
Merge pull request #104 from steampoweredtaco/fixForLatestTikTokUpdate
Browse files Browse the repository at this point in the history
Fixes #103, empty json data for live info.
  • Loading branch information
frankvHoof93 authored Dec 14, 2024
2 parents 75ba190 + 04cdbd8 commit f8b1a9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions TikTokLiveSharp/Client/Config/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +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>
/// <summary>
/// Default TimeOut for Connections
/// </summary>
Expand Down Expand Up @@ -71,7 +75,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 +96,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 f8b1a9f

Please sign in to comment.