Skip to content

Commit

Permalink
Merge pull request #253 from uploadcare/bugfix/ucare_sync_validatione…
Browse files Browse the repository at this point in the history
…rror

Fix ValidationError that occurred when requesting file information for specific video files
  • Loading branch information
evgkirov authored Sep 4, 2023
2 parents d565e79 + 30275ed commit a1f0b85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a
Changelog](https://keepachangelog.com/en/1.0.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.1.1](https://github.com/uploadcare/pyuploadcare/compare/v4.1.0...v4.1.1) - 2023-09-04

### Fixed

- Resolved a `ValidationError` that occurred when requesting file information for specific video files.

## [4.1.0](https://github.com/uploadcare/pyuploadcare/compare/v4.0.0...v4.1.0) - 2023-07-18

### Added
Expand Down
8 changes: 4 additions & 4 deletions pyuploadcare/api/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ class VideoStreamInfo(Entity):
height: Decimal
width: Decimal
frame_rate: float
bitrate: Decimal
codec: str
bitrate: Optional[Decimal]
codec: Optional[str]


class VideoInfo(Entity):
duration: Decimal
duration: Optional[Decimal]
format: str
bitrate: Decimal
bitrate: Optional[Decimal]
audio: List[AudioStreamInfo]
video: List[VideoStreamInfo]

Expand Down

0 comments on commit a1f0b85

Please sign in to comment.