diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 18066df..51d77c9 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.1] - Fix empty json data for live info - 2024-12-14 + +Bugfix for errors related to a change Tiktok made related to headers. + +### Fixed + +- Removed version_code header +- Changed UserAgent (added Mozilla) + ## [1.2.0] - Fix 403 Errors on Gifts & RoomInfo - 2024-07-14 Bugfix for 403-Errors on fetching Available Gifts & RoomInfo. diff --git a/README.md b/README.md index b6d56af..bc0dae9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# TikTokLiveSharp / TikTokLiveUnity v1.2.0 +# TikTokLiveSharp / TikTokLiveUnity v1.2.1 [![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white&style=flat-square)](https://www.linkedin.com/in/frankvhoof93/) ![Issues](https://img.shields.io/github/issues/frankvHoof93/TikTokLiveSharp) diff --git a/Setup_CSharp.MD b/Setup_CSharp.MD index 1071d60..6031b9b 100644 --- a/Setup_CSharp.MD +++ b/Setup_CSharp.MD @@ -1,4 +1,4 @@ -# TikTokLiveSharp v1.2.0 +# TikTokLiveSharp v1.2.1 ## Downloading the Source Code Download the TikTokLiveSharp-SourceCode from the [Releases-Page](https://github.com/frankvHoof93/TikTokLiveSharp/releases/) diff --git a/Setup_Unity.MD b/Setup_Unity.MD index 5c9049d..d32b2fc 100644 --- a/Setup_Unity.MD +++ b/Setup_Unity.MD @@ -1,4 +1,4 @@ -# TikTokLiveUnity v1.2.0 +# TikTokLiveUnity v1.2.1 ## Installing the Project in Unity - Open the Package Manager Window **(Window -> Package Manager)** diff --git a/TikTokLiveSharp/Client/Config/Constants.cs b/TikTokLiveSharp/Client/Config/Constants.cs index 9208539..1279175 100644 --- a/TikTokLiveSharp/Client/Config/Constants.cs +++ b/TikTokLiveSharp/Client/Config/Constants.cs @@ -23,7 +23,11 @@ public static class Constants /// /// User-Agent for WebClients (Http/WebSocket) /// - 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"; + /// + /// Browser version for WebClients parameter (Http/WebSocket) + /// + 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";/// /// /// Default TimeOut for Connections /// @@ -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", "" }, @@ -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" } }); diff --git a/TikTokLiveSharp/TikTokLiveSharp.csproj b/TikTokLiveSharp/TikTokLiveSharp.csproj index 0619775..052f424 100644 --- a/TikTokLiveSharp/TikTokLiveSharp.csproj +++ b/TikTokLiveSharp/TikTokLiveSharp.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 1.2.0 + 1.2.1 Frank van Hoof True https://github.com/frankvHoof93/TikTokLiveSharp diff --git a/TikTokLiveSharpNetCoreWPFTestApp/TikTokLiveSharpNetCoreWPFTestApp.csproj b/TikTokLiveSharpNetCoreWPFTestApp/TikTokLiveSharpNetCoreWPFTestApp.csproj index cbb40b7..c49cd8b 100644 --- a/TikTokLiveSharpNetCoreWPFTestApp/TikTokLiveSharpNetCoreWPFTestApp.csproj +++ b/TikTokLiveSharpNetCoreWPFTestApp/TikTokLiveSharpNetCoreWPFTestApp.csproj @@ -15,7 +15,7 @@ Library TikTok;Live en - 1.2.0 + 1.2.1 diff --git a/TikTokLiveSharpNetFrameworkWPFTestApp/TikTokLiveSharpNetFrameworkWPFTestApp.csproj b/TikTokLiveSharpNetFrameworkWPFTestApp/TikTokLiveSharpNetFrameworkWPFTestApp.csproj index 66221f1..4c7d201 100644 --- a/TikTokLiveSharpNetFrameworkWPFTestApp/TikTokLiveSharpNetFrameworkWPFTestApp.csproj +++ b/TikTokLiveSharpNetFrameworkWPFTestApp/TikTokLiveSharpNetFrameworkWPFTestApp.csproj @@ -26,7 +26,7 @@ false true 0 - 1.2.0.0 + 1.2.1.0 false true diff --git a/TikTokLiveSharpWinFormsTestApp/TikTokLiveSharpWinFormsTestApp.csproj b/TikTokLiveSharpWinFormsTestApp/TikTokLiveSharpWinFormsTestApp.csproj index 2a64748..05fc17a 100644 --- a/TikTokLiveSharpWinFormsTestApp/TikTokLiveSharpWinFormsTestApp.csproj +++ b/TikTokLiveSharpWinFormsTestApp/TikTokLiveSharpWinFormsTestApp.csproj @@ -24,7 +24,7 @@ false true 0 - 1.2.0.0 + 1.2.1.0 false true diff --git a/TikTokLiveSharp_TestApplication/TikTokLiveSharpConsoleTestApplication.csproj b/TikTokLiveSharp_TestApplication/TikTokLiveSharpConsoleTestApplication.csproj index 97b3bf7..8fb2ac9 100644 --- a/TikTokLiveSharp_TestApplication/TikTokLiveSharpConsoleTestApplication.csproj +++ b/TikTokLiveSharp_TestApplication/TikTokLiveSharpConsoleTestApplication.csproj @@ -3,7 +3,7 @@ Exe netcoreapp3.1 - 1.2.0 + 1.2.1 Console-TestApp with .NET Core for TikTokLive_Sharp 2024 Frank van Hoof LICENSE.md diff --git a/package.json b/package.json index 73e07fe..bd96fda 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "dev.vanhoof.tiktokliveunity", "displayName": "TikTokLive Unity", "description": "TikTokLive-Client for Unity", - "version": "1.2.0", + "version": "1.2.1", "author": { "name": "Frank van Hoof", "email": "frank_van_hoof@hotmail.com",