Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine
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
Container Registry
Model registry
Operate
Environments
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
Commits
873dbc3a
Commit
873dbc3a
authored
2 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Style: Flake8 fixes
parent
48f6326c
No related branches found
No related tags found
No related merge requests found
Pipeline
#2156
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.py
+3
-2
3 additions, 2 deletions
src/engine.py
with
3 additions
and
2 deletions
src/engine.py
+
3
−
2
View file @
873dbc3a
...
@@ -318,8 +318,8 @@ class Player:
...
@@ -318,8 +318,8 @@ class Player:
This method expects that the entry is pre-loaded using `preload(..)` or
This method expects that the entry is pre-loaded using `preload(..)` or
`preload_group(self, entries)` before being played.
`preload_group(self, entries)` before being played.
In case the pre-loading has happened for a group of entries, only the first entry of the
group
In case the pre-loading has happened for a group of entries, only the first entry of the
needs to be passed.
group
needs to be passed.
Args:
Args:
entry (PlaylistEntry): The audio source to be played
entry (PlaylistEntry): The audio source to be played
...
@@ -338,6 +338,7 @@ class Player:
...
@@ -338,6 +338,7 @@ class Player:
current_metadata
=
ResourceUtil
.
generate_track_metadata
(
entry
)
current_metadata
=
ResourceUtil
.
generate_track_metadata
(
entry
)
json_meta
=
json
.
dumps
(
current_metadata
,
ensure_ascii
=
False
)
json_meta
=
json
.
dumps
(
current_metadata
,
ensure_ascii
=
False
)
res
=
self
.
connector
.
send_lqc_command
(
"
engine
"
,
"
set_track_metadata
"
,
json_meta
)
res
=
self
.
connector
.
send_lqc_command
(
"
engine
"
,
"
set_track_metadata
"
,
json_meta
)
self
.
logger
.
info
(
f
"
Liquidsoap
'
set_track_metadata
'
response: $
{
res
}
"
)
# Instant activation or fade-in
# Instant activation or fade-in
self
.
connector
.
enable_transaction
()
self
.
connector
.
enable_transaction
()
...
...
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