Pass toc_path as argument in program.py

Resolves #368.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
JoeLametta
2019-10-21 14:00:00 +00:00
parent 1be5adda65
commit 2e966a446d

View File

@@ -126,9 +126,8 @@ class Program:
logger.debug('getTable: cddbdiscid %s, mbdiscid %s not in cache '
'for offset %s, reading table', cddbdiscid, mbdiscid,
offset)
t = cdrdao.ReadTOCTask(device)
t = cdrdao.ReadTOCTask(device, toc_path=toc_path)
t.description = "Reading table"
t.toc_path = toc_path
runner.run(t)
itable = t.toc.table
tdict[offset] = itable