mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Fixed OneLibrary export missing data
This commit is contained in:
1 parent
c2f5191962
commit
4878d82671
17 files changed
+733
-109
No files matched your search
@@ -93,7 +93,8 @@ def to_track(row, drive_path: str | None = None) -> Track:
|
||||
rating=max(0, min(5, int(getattr(row, "rating", 0) or 0))),
|
||||
playcount=getattr(row, "djPlayCount", None),
|
||||
length=getattr(row, "length", None),
|
||||
bitrate=getattr(row, "bitrate", None),
|
||||
# kbps here; the generic model (and the table) carry bits per second.
|
||||
bitrate=(getattr(row, "bitrate", None) or 0) * 1000 or None,
|
||||
import_date=_iso_date(getattr(row, "dateAdded", None)),
|
||||
last_played=None, # the drive records history as playlists, not per track
|
||||
release_date=_iso_date(getattr(row, "releaseDate", None))
|
||||
|
||||
Reference in new issue
Block a user