From 33fbf9a9ee57bc442811e05e8f22efa2e4a00847 Mon Sep 17 00:00:00 2001 From: 7x11x13 Date: Wed, 15 Nov 2023 17:32:53 -0500 Subject: [PATCH] Fix warning --- youtube_up/__main__.py | 2 +- youtube_up/metadata.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_up/__main__.py b/youtube_up/__main__.py index bd4d933..5250c81 100644 --- a/youtube_up/__main__.py +++ b/youtube_up/__main__.py @@ -39,7 +39,7 @@ def main(): video_parser.add_argument( "--description", help="Description. Max length 5000", default="" ) - video_parser.add_argument("--privacy", help="Privacy", type=PrivacyEnum) + video_parser.add_argument("--privacy", help="Privacy", type=PrivacyEnum, default=PrivacyEnum.PRIVATE) video_parser.add_argument( "--made_for_kids", help="Made for kids. If true comments will be disabled", diff --git a/youtube_up/metadata.py b/youtube_up/metadata.py index c2bb1e0..9f92833 100644 --- a/youtube_up/metadata.py +++ b/youtube_up/metadata.py @@ -385,7 +385,7 @@ class Metadata: description: str = "" """Description. Max length 5000""" - privacy: Optional[PrivacyEnum] = PrivacyEnum.PRIVATE + privacy: PrivacyEnum = PrivacyEnum.PRIVATE """Privacy. Possible values: PUBLIC, UNLISTED, PRIVATE""" made_for_kids: bool = False