From bb4defdb82515072c3e8a17698a55fb554e86a76 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Thu, 17 Mar 2022 02:07:50 +0100 Subject: [PATCH] In an MVW JSON response the 'size' attribute may be None e.g. when the result is an ORF .m3u8 instead of an .mp4 file --- type_def/mvw_json_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type_def/mvw_json_response.py b/type_def/mvw_json_response.py index c1a0b09..df4ae25 100644 --- a/type_def/mvw_json_response.py +++ b/type_def/mvw_json_response.py @@ -10,7 +10,7 @@ class Show(BaseModel): description: str timestamp: int duration: int - size: int + size: Optional[int] url_website: str url_subtitle: str url_video: str