|
@ -132,7 +132,7 @@ class Song: |
|
|
self.data = {} |
|
|
self.data = {} |
|
|
self.cached = None |
|
|
self.cached = None |
|
|
self.lang = None |
|
|
self.lang = None |
|
|
self._parse(config) |
|
|
self._parse() |
|
|
|
|
|
|
|
|
# Post processing of data |
|
|
# Post processing of data |
|
|
self.subpath = subpath |
|
|
self.subpath = subpath |
|
@ -176,14 +176,14 @@ class Song: |
|
|
""" |
|
|
""" |
|
|
raise NotImplementedError() |
|
|
raise NotImplementedError() |
|
|
|
|
|
|
|
|
def _parse(self, config): # pylint: disable=no-self-use |
|
|
def _parse(self): # pylint: disable=no-self-use |
|
|
"""Parse song. |
|
|
"""Parse song. |
|
|
|
|
|
|
|
|
It set the following attributes: |
|
|
It set the following attributes: |
|
|
|
|
|
|
|
|
- titles: the list of (raw) titles. This list will be processed to |
|
|
- titles: the list of (raw) titles. This list will be processed to |
|
|
remove prefixes. |
|
|
remove prefixes. |
|
|
- lang: the main language of the song, as language code.. |
|
|
- lang: the main language of the song, as language code. |
|
|
- authors: the list of (raw) authors. This list will be processed to |
|
|
- authors: the list of (raw) authors. This list will be processed to |
|
|
'clean' it (see function :func:`patacrep.authors.processauthors`). |
|
|
'clean' it (see function :func:`patacrep.authors.processauthors`). |
|
|
- data: song metadata. Used (among others) to sort the songs. |
|
|
- data: song metadata. Used (among others) to sort the songs. |
|
|