Skip to content

Commit

Permalink
Merge pull request #105 from frankvHoof93/development
Browse files Browse the repository at this point in the history
1.2.1 Release - Bugfix for Update by TikTok
  • Loading branch information
frankvHoof93 authored Dec 14, 2024
2 parents be7cb0e + 6c66a33 commit 2b02cff
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 12 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Setup_CSharp.MD
Original file line number Diff line number Diff line change
@@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion Setup_Unity.MD
Original file line number Diff line number Diff line change
@@ -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)**
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<RepositoryType>Library</RepositoryType>
<PackageTags>TikTok;Live</PackageTags>
<NeutralLanguage>en</NeutralLanguage>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.0.0</ApplicationVersion>
<ApplicationVersion>1.2.1.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.0.0</ApplicationVersion>
<ApplicationVersion>1.2.1.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<Description>Console-TestApp with .NET Core for TikTokLive_Sharp</Description>
<Copyright>2024 Frank van Hoof</Copyright>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]",
Expand Down

0 comments on commit 2b02cff

Please sign in to comment.