Skip to content

Commit

Permalink
Fix subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Nov 15, 2023
1 parent 855e359 commit e942a82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion youtube_up/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -187,4 +188,4 @@ def callback(step: str, prog: int):


if __name__ == "__main__":
main()
main()
2 changes: 1 addition & 1 deletion youtube_up/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e942a82

Please sign in to comment.