Fix for path at background.py and added TikTok error message just in case
This commit is contained in:
1 parent
ee6363cd1e
commit
8e5b7a935d
2 files changed
+6
-2
No files matched your search
+5
-1
@@ -108,7 +108,11 @@ class TikTok:
|
||||
raise TikTokTTSException(status_code, data["message"])
|
||||
|
||||
# decode data from base64 to binary
|
||||
raw_voices = data["data"]["v_str"]
|
||||
try:
|
||||
raw_voices = data["data"]["v_str"]
|
||||
except:
|
||||
print("The TikTok TTS returned an invalid response. Please try again later, and report this bug.")
|
||||
raise TikTokTTSException(0, "Invalid response")
|
||||
decoded_voices = base64.b64decode(raw_voices)
|
||||
|
||||
# write voices to specified filepath
|
||||
|
||||
@@ -13,7 +13,7 @@ from utils import settings
|
||||
from utils.console import print_step, print_substep
|
||||
|
||||
# Load background videos
|
||||
with open("utils/backgrounds.json") as json_file:
|
||||
with open("./utils/backgrounds.json") as json_file:
|
||||
background_options = json.load(json_file)
|
||||
|
||||
# Remove "__comment" from backgrounds
|
||||
|
||||
Reference in new issue
Block a user