mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 10:22:13 +01:00
convert: playlist: Fix filename attr in load method
This commit is contained in:
parent
55b386375a
commit
ba3740c8fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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:]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue