chore: explicit schedule file metadata dict values
This commit is contained in:
parent
216ab62507
commit
fa136fad97
3 changed files with 18 additions and 3 deletions
|
@ -78,7 +78,11 @@ def generate_file_events(
|
|||
"fade_out": time_in_milliseconds(time_fromisoformat(schedule["fade_out"])),
|
||||
"cue_in": time_in_seconds(time_fromisoformat(schedule["cue_in"])),
|
||||
"cue_out": time_in_seconds(time_fromisoformat(schedule["cue_out"])),
|
||||
"metadata": file,
|
||||
"metadata": {
|
||||
"track_title": file["track_title"],
|
||||
"artist_name": file["artist_name"],
|
||||
"mime": file["mime"],
|
||||
},
|
||||
"replay_gain": file["replay_gain"],
|
||||
"filesize": file["size"],
|
||||
}
|
||||
|
|
|
@ -94,6 +94,9 @@ class ApiClientServicesMock:
|
|||
"url": None,
|
||||
"replay_gain": "-8.77",
|
||||
"size": 9505222,
|
||||
"artist_name": "Bag Raiders",
|
||||
"track_title": "Shooting Stars",
|
||||
"mime": "audio/mp3",
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
|
@ -137,7 +140,11 @@ def test_get_schedule():
|
|||
"fade_out": 500.0,
|
||||
"cue_in": 1.31066,
|
||||
"cue_out": 231.985,
|
||||
"metadata": ApiClientServicesMock.file_url(),
|
||||
"metadata": {
|
||||
"artist_name": "Bag Raiders",
|
||||
"track_title": "Shooting Stars",
|
||||
"mime": "audio/mp3",
|
||||
},
|
||||
"replay_gain": "-8.77",
|
||||
"filesize": 9505222,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue