convert: playlist: Fix filename attr in load method

This commit is contained in:
J0J0 T 2022-08-12 08:56:31 +02:00 committed by J0J0 Todos
parent 55b386375a
commit ba3740c8fe

View file

@ -153,7 +153,7 @@ class M3UFile():
def load(self):
"""Reads the m3u file from disk and sets the object's attributes.
"""
with open(self.name, "r") as playlist_file:
with open(self.path, "r") as playlist_file:
raw_contents = playlist_file.readlines()
self.extm3u = True if raw_contents[0] == "#EXTM3U" else False
for line in raw_contents[1:]: