minor corrections and distribution of the generated file

This commit is contained in:
Carlos Galindo 2021-10-01 21:50:08 +02:00
parent 6535d4d7dd
commit 890c2397e3
6 changed files with 85 additions and 31 deletions

View file

@ -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):