mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-12-03 18:32:51 +01:00
Implemented efficient re-exporting
This commit is contained in:
1 parent
3a9dc90344
commit
bb9f6e2bd3
14 files changed
+727
-63
No files matched your search
@@ -101,7 +101,7 @@ class RekordboxDeviceExporter:
|
||||
art_n = 0
|
||||
total = len(payload.tracks)
|
||||
for n, item in enumerate(payload.tracks, start=1):
|
||||
payload.checkpoint(f"Writing the device library: {item.track.title or item.destination.name} ({n}/{total})")
|
||||
payload.checkpoint(f"Writing the device library: {item.track.title or item.destination.name} ({n}/{total})", step=n, of=total)
|
||||
track = item.track
|
||||
by_source[item.source_id] = n
|
||||
rel = _drive_relative(item.destination, root)
|
||||
|
||||
@@ -57,7 +57,6 @@ from pathlib import Path
|
||||
from sqlalchemy import text
|
||||
|
||||
from ...core.export import ExportPayload, ExportTrack, WrittenLibrary
|
||||
from ...core import waveform
|
||||
from ...core.cue_colors import effective_color
|
||||
from . import anlz_writer as W
|
||||
from . import artwork, palette
|
||||
@@ -177,7 +176,7 @@ class RekordboxExporter:
|
||||
total = len(payload.tracks)
|
||||
for n, item in enumerate(payload.tracks, start=1):
|
||||
# Each track is decoded for its waveform: the slow part.
|
||||
payload.checkpoint(f"Analysing {item.track.title or item.destination.name} ({n}/{total})")
|
||||
payload.checkpoint(f"Analysing {item.track.title or item.destination.name} ({n}/{total})", step=n, of=total)
|
||||
content = self._add_track(db, item)
|
||||
rows[item.source_id] = content
|
||||
ids[item.source_id] = str(content.ID)
|
||||
@@ -366,7 +365,7 @@ class RekordboxExporter:
|
||||
# `.EXT`/`.2EX` carry the drawn waveforms. Cue lists are present but
|
||||
# EMPTY — master.db keeps cues in djmdCue.
|
||||
off = timebase.offset(item.destination)
|
||||
measured = waveform.analyse(item.destination, lead=off)
|
||||
measured = item.waveform(lead=off)
|
||||
path = str(item.destination)
|
||||
tags = [W.path_tag(path), W.vbr_tag(W.mp3_samples(item.destination))]
|
||||
markers = item.cues.grid_markers if item.cues else []
|
||||
|
||||
Reference in new issue
Block a user