Fixes #103, empty json data for live info. #104
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #103
Built and tested on my end against a live user and everything seems to connect and work now.
TikTok changed something almost two days ago, the version_code is removed and will break getting the Live info endpoint and removing it doesn't seem to affect anything else. We had to put in a similar fix to the node-js library.
That wasn't enough to fix this library though.
It appears that this library was missing the first part of the USER_AGENT as well and that was also causing the issue. Once I updated it with Mozilla in the front it started working. I went ahead and made a new BROWSER_VERSION value for that parameter. It still seemed to work with the modified user agent, but I made it equal to what our browsers are still sending tiktok.