convert: playlist: Construct Windows path programatically

This commit is contained in:
J0J0 T 2022-08-28 13:44:19 +02:00 committed by J0J0 Todos
parent 004d10a143
commit 31b9e7afeb

View file

@ -85,8 +85,10 @@ class M3UFileTest(unittest.TestCase):
the_playlist_file = path.join(RSRC, b'playlist_windows.m3u8')
m3ufile = M3UFile(the_playlist_file)
m3ufile.load()
self.assertEqual(m3ufile.media_list[0],
'x:\This\is\å\path\to_a_file.mp3\n')
self.assertEqual(
m3ufile.media_list[0],
path.join('x:', 'This', 'is', 'å', 'path', 'to_a_file.mp3') + '\n'
)
def test_playlist_load_extm3u(self):
"""Test loading a playlist with an #EXTM3U header."""