forked from trav/lintunes
v0.50.0: exports report the finished folder's size
This commit is contained in:
@@ -1086,7 +1086,8 @@ class MainWindow(QMainWindow):
|
||||
self._web_progress.complete(
|
||||
web_progress.EXPORT,
|
||||
f"{summary['exported']} track"
|
||||
f"{'s' if summary['exported'] != 1 else ''}")
|
||||
f"{'s' if summary['exported'] != 1 else ''} · "
|
||||
f"{device_sync.format_bytes(summary.get('bytes', 0))}")
|
||||
self._web_progress.begin(web_progress.UPLOAD, "Starting…")
|
||||
self._upload_worker = upload.UploadWorker(
|
||||
run["host"], run["plan"].dest_dir, run["rdir"], self)
|
||||
@@ -1124,7 +1125,8 @@ class MainWindow(QMainWindow):
|
||||
web_progress.UPLOAD,
|
||||
f"{sent} file{'s' if sent != 1 else ''} sent")
|
||||
summary = run.get("export", {})
|
||||
msg = (f"Uploaded “{summary.get('playlist', run['slug'])}” to "
|
||||
msg = (f"Uploaded “{summary.get('playlist', run['slug'])}” "
|
||||
f"({device_sync.format_bytes(summary.get('bytes', 0))}) to "
|
||||
f"{run['host']}:{run['rdir']}")
|
||||
extras = []
|
||||
if summary.get("converted"):
|
||||
@@ -1268,7 +1270,9 @@ class MainWindow(QMainWindow):
|
||||
self._hide_sync_widgets()
|
||||
what = "web mix" if summary["kind"] == exporter.WEB else "folder"
|
||||
msg = (f"Exported “{summary['playlist']}” as a {what}: "
|
||||
f"{summary['exported']} tracks → {summary['dest']}")
|
||||
f"{summary['exported']} tracks, "
|
||||
f"{device_sync.format_bytes(summary.get('bytes', 0))} → "
|
||||
f"{summary['dest']}")
|
||||
if summary["converted"]:
|
||||
msg += f", {summary['converted']} converted to FLAC"
|
||||
if summary["skipped"]:
|
||||
|
||||
Reference in New Issue
Block a user