Skip to content

Commit

Permalink
Add m3u metatdata, hard coded.
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverarmor committed Dec 9, 2024
1 parent 54f61d6 commit f1746e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spotdl/utils/m3u.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ def create_m3u_content(
- the m3u content as a string
"""

text = ""
text = "#EXTM3U\n"

for song in song_list:
metadata = create_file_name(song, "#EXTINF:{duration},{album-artist} - {title}", "")
text += str(metadata) + "\n"

if not detect_formats:
file_name = create_file_name(
song, template, file_extension, restrict, short
Expand Down Expand Up @@ -79,7 +82,6 @@ def gen_m3u_files(
### Arguments
- songs: the list of songs
- file_name: the file name to use
- song_list: the list of songs
- template: the output file template to use
- file_extension: the file extension to use
- restrict: sanitization to apply to the filename
Expand Down

0 comments on commit f1746e8

Please sign in to comment.