Skip to content
New issue

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

ValidationError: 2 validation errors for VideoInfo #285

Open
sentry-io bot opened this issue Nov 16, 2024 · 0 comments
Open

ValidationError: 2 validation errors for VideoInfo #285

sentry-io bot opened this issue Nov 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sentry-io
Copy link

sentry-io bot commented Nov 16, 2024

Sentry Issue: PYKORONE-NG

ValidationError: 2 validation errors for VideoInfo
height
  Field required [type=missing, input_value={'id': 'RDcWEdpwvw3v8', '...': None, 'uploader': ''}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.9/v/missing
width
  Field required [type=missing, input_value={'id': 'RDcWEdpwvw3v8', '...': None, 'uploader': ''}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.9/v/missing
(5 additional frame(s) were not displayed)
...
  File "korone/modules/medias/handlers/youtube.py", line 46, in ytdl_command
    yt_info = await fetch_video_info(ytdl, args, message)
  File "korone/modules/medias/handlers/youtube.py", line 74, in fetch_video_info
    return await ytdl.get_video_info(url)
  File "korone/modules/medias/utils/youtube/ytdl.py", line 128, in get_video_info
    return await ytdl.get_info(url, {})
  File "korone/modules/medias/utils/youtube/ytdl.py", line 81, in get_info
    return await self.generate_videoinfo(info)
  File "korone/modules/medias/utils/youtube/ytdl.py", line 92, in generate_videoinfo
    return VideoInfo.model_validate(info)

Issue created from Copilot

@HitaloM HitaloM added the enhancement New feature or request label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant