Replies: 2 comments 29 replies
-
Also, there is a bug #3134 that could lead to an insatiable hunger mode for
|
Beta Was this translation helpful? Give feedback.
-
vitoyucepi On this part here. You stated.
This script is this all it does.
When you move songs around, does the list that resides in request.py update and feed it to Liquidsoap to play in the new order?
I know how to do the scripting in ASP.NET and Classic ASP. So, I am looking at how to script it in Python with SQL Server. Will that be all that is needed just to have that script inside of the request.py? Thanks guys. |
Beta Was this translation helpful? Give feedback.
-
Back in 2019, tristan-nel asked the question,
How to dynamically manage a playlist
.On Mar 2, 2020, he provided the code on how to do it, but for those who have never used Python scripting language, I am at a loss on what to do with it to use it.
This was his final post, and it was cool that he returned and posted it.
===Final Post===
So I ended up using
request.dynamic
, and using a Python script to request what the next song in the user-managed playlist will be from Cloud Firestore:In the liquidsoap server:
In the Python script:
===End Final Post===
I am going to guess here on what to do.
I would have to install
python3
(After running the below command, it lets me know I don't have it installed.)The Python script would need to be saved as
request.py
in the same folder as the.liq
file.The code in the liq file is similar to the example code on Request.dynamic.
Will this make it look at the playlist file for new entries, or will you have to do some injection to get the new songs added to the queue?
Beta Was this translation helpful? Give feedback.
All reactions