From 674b8e1408d7ba76e514ce733552824946840d23 Mon Sep 17 00:00:00 2001 From: nichind Date: Tue, 17 Dec 2024 16:21:55 +0300 Subject: [PATCH] add:youtubeHLS: True --- pybalt/cobalt.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pybalt/cobalt.py b/pybalt/cobalt.py index aca5808..2701905 100644 --- a/pybalt/cobalt.py +++ b/pybalt/cobalt.py @@ -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. @@ -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 diff --git a/setup.py b/setup.py index 7717ab2..fcc4baf 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def readme(): setup( name="pybalt", - version="2024.12.7", + version="2024.12.8", author="nichind", author_email="nichinddev@gmail.com", description="Download mediafiles from YouTube, Twitter (X), Instagram, Reddit & more. CLI & python module for @imputnet's cobalt processing instance api.",