Skip to content

Commit

Permalink
10:18 2024/05/22
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwang1978 committed May 22, 2024
1 parent a1356e9 commit 4caf3c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions txt_to_m3u.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ def convert(txt_file, m3u_file):
with open(txt_file, 'r') as txt, open(m3u_file, 'w') as m3u:
m3u.write("#EXTM3U\n")

lines = txt.strip().split("\n")
group_name = ""
for line in lines:
for line in txt:
line = line.strip()
parts = line.split(",")
if len(parts) == 2 and "#genre#" in line:
Expand Down

0 comments on commit 4caf3c3

Please sign in to comment.