mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2025-04-27 23:55:57 +02:00
minor corrections and distribution of the generated file
This commit is contained in:
parent
6535d4d7dd
commit
890c2397e3
6 changed files with 85 additions and 31 deletions
|
@ -35,12 +35,13 @@ def extra_put(extra, index, the_type, data=None):
|
|||
|
||||
|
||||
class SongLoader:
|
||||
def __init__(self, latex_file, audio_dir):
|
||||
def __init__(self, latex_file, audio_dir=None):
|
||||
self.index = 1
|
||||
self.category = None
|
||||
self.categories = []
|
||||
self.songs = []
|
||||
self.audio_dir = audio_dir
|
||||
if audio_dir:
|
||||
self.audio_dir = audio_dir
|
||||
self.scan(latex_file)
|
||||
|
||||
def scan(self, latex_file):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue