@property
def short(self):
- return self.filepath[len(REMOTE_BASE_PATH):]
+ # property for compatibility with Track model
+ # for jingles self.filepath is actually only the last part of the path,
+ # ex: jingles panik/H_marimba_RP_chucho_zoe.wav
+ return self.filepath
def file_path(self):
# for compatibility with Track model method
def get_local_filepath(self):
if not self.short:
return None
- return os.path.join(LOCAL_BASE_PATH, self.short)
+ return os.path.join(LOCAL_BASE_PATH, 'SPOTS', self.short)
@property
def title(self):