diff --git a/patacrep/songs/__init__.py b/patacrep/songs/__init__.py index a4a6b089..512a2ced 100644 --- a/patacrep/songs/__init__.py +++ b/patacrep/songs/__init__.py @@ -90,8 +90,6 @@ class Song(Content): "unprefixed_titles", "cached", "data", - "datadir", - "fullpath", "subpath", "languages", "authors", @@ -101,6 +99,7 @@ class Song(Content): def __init__(self, datadir, subpath, config): self.fullpath = os.path.join(datadir, subpath) + self.datadir = datadir if datadir: # Only songs in datadirs are cached self._filehash = hashlib.md5(