This commit is contained in:
2024-03-29 10:59:18 +01:00
parent 9ed78792c6
commit 6a33fd07c5
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -36,7 +36,6 @@ import spotipy
import tiktoken
from discord.ext import commands, tasks
from spotipy.oauth2 import SpotifyClientCredentials
from flask import jsonify
import yt_dlp
from spotify_dl import spotify
from spotify_dl import youtube as youtube_download
@@ -202,8 +201,8 @@ class MusicFileList(object):
return self.music_file_list
def update_file_list(self,item):
self.music_file_list.append(item)
data = jsonify({"item" : item})
requests.post(f'{FILE_SERVICE_ADDRESS}{GET_MP3}', data, timeout = 360)
post_data = {"item" : item}
requests.post(f'{FILE_SERVICE_ADDRESS}{GET_MP3}', post_data, timeout = 360)
music_file_list = []
+1 -1
View File
@@ -58,4 +58,4 @@ if __name__=='__main__':
#TODO: Informacja o zmianie i update
#TODO: Move download Youtube i Spotify tuta j
#TODO: Move download Youtube i Spotify tutaj (bedzie potrzebny wtedy rest w obie strony)