Browse Source

Datadir and fullpath are no longer stored in cached songs

Closes #68
pull/65/head
Louis 10 years ago
parent
commit
d40ae1cea6
  1. 3
      patacrep/songs/__init__.py

3
patacrep/songs/__init__.py

@ -90,8 +90,6 @@ class Song(Content):
"unprefixed_titles", "unprefixed_titles",
"cached", "cached",
"data", "data",
"datadir",
"fullpath",
"subpath", "subpath",
"languages", "languages",
"authors", "authors",
@ -101,6 +99,7 @@ class Song(Content):
def __init__(self, datadir, subpath, config): def __init__(self, datadir, subpath, config):
self.fullpath = os.path.join(datadir, subpath) self.fullpath = os.path.join(datadir, subpath)
self.datadir = datadir
if datadir: if datadir:
# Only songs in datadirs are cached # Only songs in datadirs are cached
self._filehash = hashlib.md5( self._filehash = hashlib.md5(

Loading…
Cancel
Save