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
35581337
Commit
35581337
authored
2 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Docs: Group functions
parent
2d8237d5
No related branches found
No related tags found
1 merge request
!3
Liquidsoap 2 migration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/functions.liq
+10
-3
10 additions, 3 deletions
src/functions.liq
with
10 additions
and
3 deletions
src/functions.liq
+
10
−
3
View file @
35581337
...
@@ -18,6 +18,11 @@
...
@@ -18,6 +18,11 @@
#
# METADATA
#
# Builds a metadata object from data passed as JSON
# Builds a metadata object from data passed as JSON
def build_metadata(json_string) =
def build_metadata(json_string) =
let json.parse (data : {
let json.parse (data : {
...
@@ -48,7 +53,6 @@ def build_metadata(json_string) =
...
@@ -48,7 +53,6 @@ def build_metadata(json_string) =
]
]
end
end
# Reads the track duration
# Reads the track duration
# a.) when available from the file
# a.) when available from the file
# b.) as a fallback from the meta field "track_duration"
# b.) as a fallback from the meta field "track_duration"
...
@@ -64,7 +68,6 @@ def get_meta_track_duration(meta) =
...
@@ -64,7 +68,6 @@ def get_meta_track_duration(meta) =
end
end
end
end
# Posts a playlog to the Engine API
# Posts a playlog to the Engine API
def post_playlog(api_url, data) =
def post_playlog(api_url, data) =
json_data = json()
json_data = json()
...
@@ -97,6 +100,11 @@ def post_playlog(api_url, data) =
...
@@ -97,6 +100,11 @@ def post_playlog(api_url, data) =
end
end
#
# SOURCE
#
# Evaluate the type of source
# Evaluate the type of source
#
#
# Returns
# Returns
...
@@ -123,7 +131,6 @@ def eval_source_type(source_id) =
...
@@ -123,7 +131,6 @@ def eval_source_type(source_id) =
source_type
source_type
end
end
# Evaluates the track type based on the given:
# Evaluates the track type based on the given:
# a.) "meta.track_type" passed as annotation, and if not available on
# a.) "meta.track_type" passed as annotation, and if not available on
# b.) "engine_current_track_type" passed via server function
# b.) "engine_current_track_type" passed via server function
...
...
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