From 091596c2829054cc52d5693887f263834eaae02e Mon Sep 17 00:00:00 2001 From: 7x11x13 Date: Tue, 30 Jul 2024 11:20:44 -0400 Subject: [PATCH] Fix playlist_info for original downloads --- scdl/__init__.py | 2 +- scdl/scdl.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scdl/__init__.py b/scdl/__init__.py index b43923a..6c93b4b 100644 --- a/scdl/__init__.py +++ b/scdl/__init__.py @@ -1,3 +1,3 @@ """Python Soundcloud Music Downloader.""" -__version__ = "v2.11.3" +__version__ = "v2.11.4" diff --git a/scdl/scdl.py b/scdl/scdl.py index bb0c429..6738598 100644 --- a/scdl/scdl.py +++ b/scdl/scdl.py @@ -888,6 +888,7 @@ def download_original_file( not encoding_to_flac, # copy the stream only if we aren't re-encoding to flac filename, kwargs, + playlist_info=playlist_info, skip_re_encoding=not encoding_to_flac, ) @@ -1381,7 +1382,7 @@ def re_encode_to_out( should_copy: bool, filename: str, kwargs: SCDLArgs, - playlist_info: Optional[PlaylistInfo] = None, + playlist_info: Optional[PlaylistInfo], skip_re_encoding: bool = False, ) -> None: to_stdout = is_downloading_to_stdout(kwargs)