Skip to content

Commit 2f4a0dc

Browse files
author
Robert Honz
committed
✨ Formatting.
1 parent 7af0f83 commit 2f4a0dc

2 files changed

Lines changed: 49 additions & 15 deletions

File tree

poetry.lock

Lines changed: 44 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tidalapi/media.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,11 @@ def get_file_extension(stream_url: str, stream_codec: Optional[str] = None) -> s
620620
if AudioExtensions.FLAC in stream_url:
621621
# If the file extension within the URL is '*.flac', this is simply a FLAC file.
622622
result: str = AudioExtensions.FLAC
623-
elif AudioExtensions.MP4 in stream_url or AudioExtensions.M4A in stream_url or stream_codec == Codec.MP4A:
623+
elif (
624+
AudioExtensions.MP4 in stream_url
625+
or AudioExtensions.M4A in stream_url
626+
or stream_codec == Codec.MP4A
627+
):
624628
# MPEG-4 is simply a container format for different audio / video encoded lines, like FLAC, AAC, M4A etc.
625629
# '*.m4a' is usually used as file extension, if the container contains only audio lines
626630
# See https://en.wikipedia.org/wiki/MP4_file_format

0 commit comments

Comments
 (0)