mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-19 04:06:43 +02:00
initial port for dynamic playlists
This commit is contained in:
@@ -42,6 +42,8 @@ function track(overrides: Partial<DbTrack> = {}): DbTrack {
|
||||
bitrate: null,
|
||||
channels: null,
|
||||
codec: null,
|
||||
bpm: null,
|
||||
musical_key: null,
|
||||
source_type: 'local',
|
||||
source_id: null,
|
||||
source_track_id: null,
|
||||
@@ -52,6 +54,8 @@ function track(overrides: Partial<DbTrack> = {}): DbTrack {
|
||||
mtime: 1,
|
||||
added_at: 1,
|
||||
modified_at: 1,
|
||||
play_count: 0,
|
||||
last_played_at: null,
|
||||
loudness_lufs: null,
|
||||
sample_peak: null,
|
||||
replay_gain_track_db: null,
|
||||
|
||||
@@ -64,6 +64,8 @@ function toUpsertRow(source: RemoteSourceRow, track: RemoteCatalogTrack): Remote
|
||||
bitrate: track.bitrate,
|
||||
channels: track.channels,
|
||||
codec: track.codec,
|
||||
bpm: track.bpm,
|
||||
musical_key: track.musical_key,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user