p = FilePlaylist(drivers=params['drivers'], path=params['input'])
p.load(hooke=hooke)
playlist_names = [playlist.name for playlist in hooke.playlists]
- if p.name in playlist_names:
+ if p.name in playlist_names or p.name == None:
p.name = params['output playlist'] # HACK: override input name. How to tell if it is callback-generated?
self._set_playlist(hooke, params, p)
outqueue.put(p)
path=params['file'],
)
playlist_names = [playlist.name for playlist in hooke.playlists]
- if p.name in playlist_names:
+ if p.name in playlist_names or p.name == None:
p.name = params['output playlist'] # HACK: override input name. How to tell if it is callback-generated?
hooke.playlists.append(p)