From ba3740c8fe41b305d7ede50031e177f8ff2c66dd Mon Sep 17 00:00:00 2001 From: J0J0 T Date: Fri, 12 Aug 2022 08:56:31 +0200 Subject: [PATCH] convert: playlist: Fix filename attr in load method --- beets/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/util/__init__.py b/beets/util/__init__.py index 3d27edd5e..58eb47034 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -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:]: