Skip to content

Commit

Permalink
add:youtubeHLS: True
Browse files Browse the repository at this point in the history
  • Loading branch information
nichind committed Dec 17, 2024
1 parent 5acadd8 commit 674b8e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pybalt/cobalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ async def get(
filename_style: Literal["classic", "pretty", "basic", "nerdy"] = "pretty",
audio_format: Literal["best", "mp3", "ogg", "wav", "opus"] = None,
youtube_video_codec: Literal["vp9", "h264"] = None,
youtube_hls: bool = True
) -> File:
"""
Retrieves a File object for the specified URL with optional quality, mode, and format settings.
Expand Down Expand Up @@ -317,6 +318,7 @@ async def get(
if youtube_video_codec
else "h264",
"filenameStyle": filename_style,
"youtubeHLS": youtube_hls,
}
if audio_format:
json["audioFormat"] = audio_format
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def readme():

setup(
name="pybalt",
version="2024.12.7",
version="2024.12.8",
author="nichind",
author_email="[email protected]",
description="Download mediafiles from YouTube, Twitter (X), Instagram, Reddit & more. CLI & python module for @imputnet's cobalt processing instance api.",
Expand Down

0 comments on commit 674b8e1

Please sign in to comment.