Skip to content

Commit

Permalink
✨ Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
exislow committed Dec 16, 2024
1 parent 7af0f83 commit 2f4a0dc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 15 deletions.
58 changes: 44 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion tidalapi/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,11 @@ def get_file_extension(stream_url: str, stream_codec: Optional[str] = None) -> s
if AudioExtensions.FLAC in stream_url:
# If the file extension within the URL is '*.flac', this is simply a FLAC file.
result: str = AudioExtensions.FLAC
elif AudioExtensions.MP4 in stream_url or AudioExtensions.M4A in stream_url or stream_codec == Codec.MP4A:
elif (
AudioExtensions.MP4 in stream_url
or AudioExtensions.M4A in stream_url
or stream_codec == Codec.MP4A
):
# MPEG-4 is simply a container format for different audio / video encoded lines, like FLAC, AAC, M4A etc.
# '*.m4a' is usually used as file extension, if the container contains only audio lines
# See https://en.wikipedia.org/wiki/MP4_file_format
Expand Down

0 comments on commit 2f4a0dc

Please sign in to comment.