From ef021f9f8066325b2bbed178ee04f2b8b88b0d6d Mon Sep 17 00:00:00 2001 From: Tontonnow <122251963+Tontonnow@users.noreply.github.com> Date: Fri, 27 Oct 2023 18:37:40 +0800 Subject: [PATCH] Add files via upload --- yk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yk.py b/yk.py index 2957fd9..a97f59b 100644 --- a/yk.py +++ b/yk.py @@ -110,7 +110,7 @@ class YouKu: m3u8_url = video["m3u8_url"] width = video["width"] height = video["height"] - size = video["size"] + size = video.get("size", 0) size = '{:.1f}'.format(float(size) / 1048576) drm_type = video["drm_type"] if video['drm_type'] == "default":