Skip to content
Snippets Groups Projects
Commit 35581337 authored by David Trattnig's avatar David Trattnig
Browse files

Docs: Group functions

parent 2d8237d5
No related branches found
No related tags found
1 merge request!3Liquidsoap 2 migration
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment