|
@ -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( |
|
|