Permalink
Browse files

Create all projects, write CDs afterwards (in case Brasero crashes).

  • Loading branch information...
1 parent de70b97 commit a61bf4292475d79d6b88dd7e4733d1add8582cd6 @fredreichbier committed Apr 14, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 burnmixes.py
View
@@ -150,19 +150,20 @@ def burn_project(filename, invoke):
args.cd_length *= 1000 # s -> ms
# generate the brasero project files
- projects = build_projects(
+ projects = list(build_projects(
args.filename,
args.artist,
args.track,
args.label,
args.part_length,
args.cd_length
- )
- # write the project files
+ ))
+ # write all project files
for idx, project in enumerate(projects, 1):
filename = args.out % idx
log.info('Writing %s ...' % (filename))
project.write(filename, 'UTF-8', True)
- # burn them?
- if args.burn:
+ # burn them?
+ if args.burn:
+ for idx, project in enumerate(projects, 1):
burn_project(filename, args.invoke)

0 comments on commit a61bf42

Please sign in to comment.