|
|
@@ -4,11 +4,11 @@
|
|
|
(in-package :chatikbot.plugins.music)
|
|
|
|
|
|
(defvar *cookies* (cl-cookie:make-cookie-jar))
|
|
|
-(defvar *deluge-api* "http://localhost:8112/json")
|
|
|
+(defvar *deluge-api* "http://deluge:8112/json")
|
|
|
(defvar *deluge-password* "chads")
|
|
|
(defvar *deluge-request-id* 1)
|
|
|
-(defvar *chad-music-stats-url* "http://localhost:5000/api/stats")
|
|
|
-(defvar *chad-music-rescan-url* "http://localhost:5000/api/rescan")
|
|
|
+(defvar *chad-music-stats-url* "http://music-back:5000/api/stats")
|
|
|
+(defvar *chad-music-rescan-url* "http://music-back:5000/api/rescan")
|
|
|
(defvar *slskd-api* "http://localhost:5015/api/v0")
|
|
|
(defvar *slskd-downloads-dir* "/data/upload/batch2/")
|
|
|
|
|
|
@@ -355,7 +355,7 @@
|
|
|
(defun web-action-hmac (action &optional (chat-id *chat-id*))
|
|
|
(token-hmac (format nil "~a-~a" chat-id action)))
|
|
|
|
|
|
-(def-webhook-handler ledger/handle-webhook ("music")
|
|
|
+(def-webhook-handler music/handle-webhook ("music")
|
|
|
(destructuring-bind (chat-id hmac action) *paths*
|
|
|
(let ((*chat-id* (parse-integer chat-id)))
|
|
|
(when (and (string= (web-action-hmac action) hmac)
|