diff --git a/youtube_up/__main__.py b/youtube_up/__main__.py index 4b6a546..bd4d933 100644 --- a/youtube_up/__main__.py +++ b/youtube_up/__main__.py @@ -176,6 +176,7 @@ def callback(step: str, prog: int): args_dict.pop("cookies_file") args_dict.pop("command") video_file = args_dict.pop("filename") + args_dict["captions_files"] = [args_dict.pop("captions_file")] metadata = Metadata.from_dict(args_dict) with tqdm.tqdm(total=100) as pbar: @@ -187,4 +188,4 @@ def callback(step: str, prog: int): if __name__ == "__main__": - main() + main() \ No newline at end of file diff --git a/youtube_up/metadata.py b/youtube_up/metadata.py index 9f92833..c2bb1e0 100644 --- a/youtube_up/metadata.py +++ b/youtube_up/metadata.py @@ -385,7 +385,7 @@ class Metadata: description: str = "" """Description. Max length 5000""" - privacy: PrivacyEnum = PrivacyEnum.PRIVATE + privacy: Optional[PrivacyEnum] = PrivacyEnum.PRIVATE """Privacy. Possible values: PUBLIC, UNLISTED, PRIVATE""" made_for_kids: bool = False