We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: tiktok.py add before line 216 this
opener = urllib.request.build_opener() opener.addheaders = [('User-agent', 'okhttp'),('referer','https://www.tiktok.com/')] urllib.request.install_opener(opener)
so the result is:
try: opener = urllib.request.build_opener() opener.addheaders = [('User-agent', 'okhttp'),('referer','https://www.tiktok.com/')] urllib.request.install_opener(opener) urllib.request.urlretrieve(clip.url, f"{settings.vid_filepath}/{clip.author_name}-{clip.id}.mp4") clip.mp4 = f"{clip.author_name}-{clip.id}" media_info = MediaInfo.parse(f"{settings.vid_filepath}/{clip.author_name}-{clip.id}.mp4") duration = media_info.tracks[0].duration clip.vid_duration = float(duration) / 1000 database.updateStatusWithClip(clip.id, "DOWNLOADED", clip)
The text was updated successfully, but these errors were encountered:
Thank you! I'll commit this ASAP.
Sorry, something went wrong.
Fixed now. Many thanks.
No branches or pull requests
Fix:
tiktok.py
add before line 216
this
so the result is:
The text was updated successfully, but these errors were encountered: