mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Added setting for export playlist root folder toggle
This commit is contained in:
1 parent
2c352b76a1
commit
3385b794e9
12 files changed
+113
-40
No files matched your search
@@ -765,7 +765,10 @@ def run_export(set_id: str) -> JobStatus:
|
||||
built = exporter.plan(adapter, found)
|
||||
if built.blocked:
|
||||
raise HTTPException(409, built.blocked)
|
||||
job = JOBS.submit("export", lambda handle: exporter.run(adapter, found, built, handle))
|
||||
# A Konduktor setting, read when the export starts.
|
||||
root_folder = bool(prefs.load_prefs().get("exportRootFolder", False))
|
||||
job = JOBS.submit("export", lambda handle: exporter.run(
|
||||
adapter, found, built, handle, root_folder=root_folder))
|
||||
return JobStatus(**job.as_dict())
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user