Skip to content

Issues with request.dynamic's set_queue() method #4042

Answered by AEManov20
AEManov20 asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, right after I posted that last reply I realized my mistake, I was using a request, which was already used before (i.e. by dynamic_requests), so i needed to recreate it.

Here is the fixed code of the handler (now it works and it doesn't show that error):

def play_prev_handler(req, resp)
    log("Trying to revert to previous song...")
  
    if list.is_empty(previous_songs_meta()) then
        log("No history of previous songs left")
        log("Nothing to do")
    
        resp.status_code(304)
    else
        last_song_meta = list.hd(previous_songs_meta())
        previous_songs_meta := list.tl(previous_songs_meta())
    
        if list.assoc.mem("initial_uri", last_song_meta)…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@AEManov20
Comment options

@vitoyucepi
Comment options

@AEManov20
Comment options

@AEManov20
Comment options

Answer selected by AEManov20
@AEManov20
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants