Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow missing title in ImagePost model #65

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

amadejkastelic
Copy link
Contributor

There are slideshow posts with no title in their image post, which causes the async_api.video() method to fail:

ERROR:root:Failed downloading https://vm.tiktok.com/ZGJbx5C88/: 1 validation error for VideoPage
itemInfo.itemStruct.imagePost.title
Field required [type=missing, input_value={'cover': {'imageHeight':...]}, 'imageWidth': 1080}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.1/v/missing

This PR makes that field optional and defaults it to None.

@Russell-Newton Russell-Newton merged commit 86e54c8 into Russell-Newton:main Aug 5, 2023
@Russell-Newton
Copy link
Owner

Thanks for the contribution!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants