y-young / nazurin

🎉 Images collection done right. Telegram 图片收藏机器人 / A Telegram bot that helps you collect ACG illustrations.
http://nazurin.readthedocs.io
MIT License
260 stars 58 forks source link

Grab twitter dynamic pictures/videos fail #99

Closed ovrase closed 4 months ago

ovrase commented 4 months ago

Describe the bug Grab Twitter dynamic pictures/videos fail

To Reproduce Send https://twitter.com/itpiki/status/1778032367107805477 See error

Error output / Logs

Error: (ValidationError) 3 validation errors for Document
id.int
  Input should be a valid integer [type=int_type, input_value=File(name='17780323671078... _destination='Twitter'), input_type=File]
    For further information visit https://errors.pydantic.dev/2.5/v/int_type
id.str
  Input should be a valid string [type=string_type, input_value=File(name='17780323671078... _destination='Twitter'), input_type=File]
    For further information visit https://errors.pydantic.dev/2.5/v/string_type
data
  Input should be a valid dictionary [type=dict_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.5/v/dict_type

OS: Ubuntu 22.04.4 LTS Python: 3.10.12

Additional context It should have started to appear in the latest releases.