Updated TikTok.py

The max character is actually 200, not 300 per the [documentation](https://github.com/oscie57/tiktok-voice/wiki/Request-Parameters) `there is a server limit of 200 characters.` 
This might be causing the 'error XXX.mp3 file not found' as the app splits based on max_char, and since this is 100 char over the limit the mp3 file never gets created.
pull/1558/head
Brian Antunes 2 years ago committed by GitHub
parent cfdd2c45ba
commit f21727f5a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ class TikTok:
} }
self.URI_BASE = "https://api16-normal-c-useast1a.tiktokv.com/media/api/text/speech/invoke/" self.URI_BASE = "https://api16-normal-c-useast1a.tiktokv.com/media/api/text/speech/invoke/"
self.max_chars = 300 self.max_chars = 200
self._session = requests.Session() self._session = requests.Session()
# set the headers to the session, so we don't have to do it for every request # set the headers to the session, so we don't have to do it for every request

Loading…
Cancel
Save