xspf2m3u

simple XSPF to M3U conversion
git clone https://git.ce9e.org/xspf2m3u.git

commit
ef5493e4b00e83f89ac6a577d6e3b840f47ea00c
parent
be6696f10c1e9ed69d3604b1962a523a1dbbc0e1
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-03-02 07:14
m3u2xspf: skip empty lines

Diffstat

M m3u2xspf.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/m3u2xspf.py b/m3u2xspf.py

@@ -39,7 +39,7 @@ def iter_lines(path):
   39    39                 pass
   40    40             elif line.startswith('http'):
   41    41                 yield {'location': line}
   42    -1             else:
   -1    42             elif line:
   43    43                 if not line.startswith('/'):
   44    44                     line = os.path.join(root, line)
   45    45                 yield get_tags(line)