Write FLACs to tempfiles
This commit is contained in:
parent
e54d57c365
commit
8990483cdb
|
|
@ -1,3 +1,3 @@
|
|||
"""Python Soundcloud Music Downloader."""
|
||||
|
||||
__version__ = "v2.11.0"
|
||||
__version__ = "v2.11.1"
|
||||
|
|
|
|||
|
|
@ -1203,9 +1203,8 @@ def build_ffmpeg_encoding_args(
|
|||
supported = get_ffmpeg_supported_options()
|
||||
ffmpeg_args = [
|
||||
"ffmpeg",
|
||||
# Disable all the useless stuff
|
||||
"-loglevel",
|
||||
"error",
|
||||
"debug" if kwargs["debug"] else "error",
|
||||
# Input stream
|
||||
"-i",
|
||||
input_file,
|
||||
|
|
@ -1428,7 +1427,7 @@ def _get_ffmpeg_pipe(
|
|||
|
||||
|
||||
def _is_unsupported_codec_for_streaming(codec: str) -> bool:
|
||||
return codec in ("ipod",)
|
||||
return codec in ("ipod", "flac")
|
||||
|
||||
|
||||
def _re_encode_ffmpeg(
|
||||
|
|
@ -1514,6 +1513,8 @@ def _re_encode_ffmpeg(
|
|||
if stdin_thread:
|
||||
stdin_thread.join()
|
||||
|
||||
logger.debug(f"FFmpeg output: {errors_output}")
|
||||
|
||||
# Make sure that process has exited and get its exit code
|
||||
pipe.wait()
|
||||
if pipe.returncode != 0:
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ def assert_track(
|
|||
|
||||
if check_metadata:
|
||||
f = music_tag.load_file(file)
|
||||
assert f["#length"].value
|
||||
assert f["title"].value == expected_title
|
||||
assert f["artist"].value == expected_artist
|
||||
if expected_genre:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user