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
d9799d3e
Commit
d9799d3e
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Liquidsoap interface for fallbacks.
#43
parent
b02e032e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/core/liquidsoap/playerclient.py
+28
-11
28 additions, 11 deletions
modules/core/liquidsoap/playerclient.py
with
28 additions
and
11 deletions
modules/core/liquidsoap/playerclient.py
+
28
−
11
View file @
d9799d3e
...
...
@@ -116,10 +116,10 @@ class LiquidSoapPlayerClient(LiquidSoapClient):
#
#
Playlist
#
Queues
#
def
playlist
_push
(
self
,
channel
,
uri
):
def
queue
_push
(
self
,
channel
,
uri
):
"""
Pushes the passed file URI to the `equeue` playlist channel.
...
...
@@ -131,7 +131,7 @@ class LiquidSoapPlayerClient(LiquidSoapClient):
return
self
.
message
def
playlist
_seek
(
self
,
channel
,
duration
):
def
queue
_seek
(
self
,
channel
,
duration
):
"""
Forward the playing `equeue` track/playlist of the given channel.
...
...
@@ -146,7 +146,7 @@ class LiquidSoapPlayerClient(LiquidSoapClient):
return
self
.
message
def
playlist
_clear
(
self
,
channel
):
def
queue
_clear
(
self
,
channel
):
"""
Clears all `equeue` playlist entries of the given channel.
...
...
@@ -157,19 +157,36 @@ class LiquidSoapPlayerClient(LiquidSoapClient):
Returns:
Liquidsoap server response
"""
if
channel
==
Channel
.
FILESYSTEM_A
.
value
:
self
.
command
(
channel
,
'
clear
'
)
elif
channel
==
Channel
.
FILESYSTEM_B
.
value
:
self
.
command
(
channel
,
'
clear
'
)
self
.
command
(
channel
,
'
clear
'
)
return
self
.
message
#
# Playlist
#
def
playlist_uri_set
(
self
,
channel
,
uri
):
"""
Sets the URI of a playlist source.
Args:
channel (String): Liquidsoap Source ID
uri (String): URI to the playlist file
Returns:
Liquidsoap server response
"""
if
channel
==
Channel
.
SCHEDULED_FALLBACK
.
value
:
self
.
command
(
channel
,
'
uri
'
,
uri
)
else
:
return
"
Invalid filesystem channel
'
%s
'"
%
channel
return
self
.
message
def
playlist_uri
(
self
,
channel
,
uri
):
def
playlist_uri
_clear
(
self
,
channel
):
"""
Set
s the URI of a playlist source.
Clear
s the URI of a playlist source.
Args:
channel (String): Liquidsoap Source ID
...
...
@@ -179,7 +196,7 @@ class LiquidSoapPlayerClient(LiquidSoapClient):
Liquidsoap server response
"""
if
channel
==
Channel
.
SCHEDULED_FALLBACK
.
value
:
self
.
command
(
channel
,
'
uri
'
,
uri
)
self
.
command
(
channel
,
'
clear
'
)
else
:
return
"
Invalid filesystem channel
'
%s
'"
%
channel
...
...
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