From 3779567fea21d4c1f45154fdfa01963550ce17f0 Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 23 Sep 2015 21:27:26 +0200 Subject: [PATCH] Deleted method `cover_filepath` --- patacrep/songs/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/patacrep/songs/__init__.py b/patacrep/songs/__init__.py index 792347d3..d1f24a99 100644 --- a/patacrep/songs/__init__.py +++ b/patacrep/songs/__init__.py @@ -244,15 +244,6 @@ class Song: filepath = self.search_file(filename, ['', '.ly']) return filepath if filepath else filename - @property - def cover_filepath(self): - """Get the path to the cover file (or None if not found)""" - filename = str(self.data.get('cov', '')) - if not filename: - return None - datadir_img = self.get_datadirs('img') - return self.search_file(filename, ['', '.jpg', '.png'], datadir_img) - def unprefixed_title(title, prefixes): """Remove the first prefix of the list in the beginning of title (if any). """