Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine-core
Commits
dd539480
Commit
dd539480
authored
1 year ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
refact: API properties in camelCase notation
parent
73647e26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
Update all API to return attributes / properties in camelCase notation
Pipeline
#3318
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/events.liq
+3
-3
3 additions, 3 deletions
src/events.liq
src/functions.liq
+12
-12
12 additions, 12 deletions
src/functions.liq
with
15 additions
and
15 deletions
src/events.liq
+
3
−
3
View file @
dd539480
...
...
@@ -46,9 +46,8 @@ def on_metadata_notification(meta) =
end
playlog = [
("log_source", engine_id),
("show_name", !show_name),
("show_id", !show_id),
("show_name", !show_name),
("timeslot_id", timeslot_id),
("playlist_id", playlist_id),
("track_type", track_type),
...
...
@@ -57,7 +56,8 @@ def on_metadata_notification(meta) =
("track_title", track_title),
("track_album", track_album),
("track_artist", track_artist),
("track_num", playlist_track_num)
("track_num", playlist_track_num),
("log_source", engine_id)
]
if playlog["show_id"] == "" then
log(level=3, label="metadata", "Skip posting playlog because of missing show ID!")
...
...
This diff is collapsed.
Click to expand it.
src/functions.liq
+
12
−
12
View file @
dd539480
...
...
@@ -137,20 +137,20 @@ end
def post_playlog(api_url, data) =
json_data = json()
json_data.add("log_source", int_of_string(list.assoc("log_source", data)))
json_data.add("show_name", list.assoc("show_name", data))
json_data.add("show_id", int_of_string(list.assoc("show_id", data)))
json_data.add("timeslot_id", int_of_string(list.assoc("timeslot_id", data)))
json_data.add("playlist_id", int_of_string(list.assoc("playlist_id", data)))
json_data.add("track_type", int_of_string(list.assoc("track_type", data)))
json_data.add("track_start", list.assoc("track_start", data))
json_data.add("track_duration", int_of_string(list.assoc("track_duration", data)))
json_data.add("track_title", list.assoc("track_title", data))
json_data.add("track_album", list.assoc("track_album", data))
json_data.add("track_artist", list.assoc("track_artist", data))
json_data.add("showId", int_of_string(list.assoc("show_id", data)))
json_data.add("showName", list.assoc("show_name", data))
json_data.add("timeslotId", int_of_string(list.assoc("timeslot_id", data)))
json_data.add("playlistId", int_of_string(list.assoc("playlist_id", data)))
json_data.add("trackType", int_of_string(list.assoc("track_type", data)))
json_data.add("trackStart", list.assoc("track_start", data))
json_data.add("trackDuration", int_of_string(list.assoc("track_duration", data)))
json_data.add("trackTitle", list.assoc("track_title", data))
json_data.add("trackAlbum", list.assoc("track_album", data))
json_data.add("trackArtist", list.assoc("track_artist", data))
if list.assoc("track_num", data) != "" then
json_data.add("track
_n
um", int_of_string(list.assoc("track_num", data)))
json_data.add("track
N
um", int_of_string(list.assoc("track_num", data)))
end
json_data.add("logSource", int_of_string(list.assoc("log_source", data)))
playlog = json.stringify(json_data)
log("Posting playlog to '#{api_url}': #{playlog}")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment