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:]: