Hi! I used the script many times and everything was fine. But few weeks ago the script began to show errors. Sometimes it can upload one or several files and show errors, sometimes it shows errors immediately. Can someone help with a solution?
Traceback (most recent call last):
File “new_main2.py”, line 251, in
get_audio_files_from_course(course_database_url, number_of_pages)
File “new_main2.py”, line 43, in get_audio_files_from_course
get_thing_information(first_database_page + ‘?page=’ + str(page))
File “new_main2.py”, line 70, in get_thing_information
sequence_through_audios_gtts(audios, database_url)
File “new_main2.py”, line 88, in sequence_through_audios_gtts
tts.save(temp_file)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gtts/tts.py”, line 295, in save
self.write_to_fp(f)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gtts/tts.py”, line 251, in write_to_fp
prepared_requests = self._prepare_requests()
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gtts/tts.py”, line 194, in _prepare_requests
part_tk = self.token.calculate_token(part)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gtts_token/gtts_token.py”, line 28, in calculate_token
seed = self._get_token_key()
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gtts_token/gtts_token.py”, line 58, in _get_token_key
raise ValueError(
ValueError: Unable to find token seed! Did https://translate.google.com change?