some fixes
This commit is contained in:
parent
e1258bf490
commit
2051d29e9e
@ -1,12 +1,15 @@
|
|||||||
|
""" queue storage """
|
||||||
|
|
||||||
|
|
||||||
QUEUE = {}
|
QUEUE = {}
|
||||||
|
|
||||||
def add_to_queue(chat_id, songname, link, ref, type, quality):
|
def add_to_queue(chat_id, songname, link, ref, type, quality, image, duration):
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
chat_queue = QUEUE[chat_id]
|
chat_queue = QUEUE[chat_id]
|
||||||
chat_queue.append([songname, link, ref, type, quality])
|
chat_queue.append([songname, link, ref, type, quality, image, duration])
|
||||||
return int(len(chat_queue)-1)
|
return int(len(chat_queue)-1)
|
||||||
else:
|
else:
|
||||||
QUEUE[chat_id] = [[songname, link, ref, type, quality]]
|
QUEUE[chat_id] = [[songname, link, ref, type, quality, image, duration]]
|
||||||
|
|
||||||
def get_queue(chat_id):
|
def get_queue(chat_id):
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
|
Loading…
Reference in New Issue
Block a user