~amk/public-inbox

2 2

Re: Subsonic fails because id is number, not string.

festerdam@posteo.net <festerdam@posteo.net>
Details
Message ID
<376f1ace-4a54-5e46-420c-114d4526a4e1@posteo.net>
DKIM signature
missing
Download raw message
Maybe it fails, because I haven't selected anything to be played? If 
that is the case, then I think the user should be informed through a 
message. I noticed that when I go to random albums (or probably some 
other menu) and press RET on the options listed there I get:

Debugger entered--Lisp error: (file-error 
"https://funkwhale.juniorjpdj.pl/rest/getMusicDirectory.view?u=Festerdam&p=my-password&c=ElSonic&v=1.16.0&f=json&id=6321" 
"Not found")
   signal(file-error 
("https://funkwhale.juniorjpdj.pl/rest/getMusicDirectory.view?u=Festerdam&p=my-password&c=ElSonic&v=1.16.0&f=json&id=6321" 
"Not found"))
   url-http--insert-file-helper(#<killed buffer> 
"https://funkwhale.juniorjpdj.pl/rest/getMusicDirectory.view?u=Festerdam&p=my-password&c=ElSonic&v=1.16.0&f=json&id=6321" 
nil)
 
url-insert-file-contents("https://funkwhale.juniorjpdj.pl/rest/getMusicDirectory.view?u=Festerdam&p=my-password&c=ElSonic&v=1.16.0&f=json&id=6321")
   (progn (url-insert-file-contents url) (prog1 (buffer-string) 
(kill-buffer)))
   (unwind-protect (progn (url-insert-file-contents url) (prog1 
(buffer-string) (kill-buffer))) (and (buffer-name temp-buffer) 
(kill-buffer temp-buffer)))
   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn 
(url-insert-file-contents url) (prog1 (buffer-string) (kill-buffer))) 
(and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
   (let ((temp-buffer (generate-new-buffer " *temp*"))) 
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn 
(url-insert-file-contents url) (prog1 (buffer-string) (kill-buffer))) 
(and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
   (json-read-from-string (let ((temp-buffer (generate-new-buffer " 
*temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect 
(progn (url-insert-file-contents url) (prog1 (buffer-string) 
(kill-buffer))) (and (buffer-name temp-buffer) (kill-buffer 
temp-buffer))))))
   (let* ((json-array-type 'list) (json-key-type 'string)) 
(json-read-from-string (let ((temp-buffer (generate-new-buffer " 
*temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect 
(progn (url-insert-file-contents url) (prog1 (buffer-string) 
(kill-buffer))) (and (buffer-name temp-buffer) (kill-buffer 
temp-buffer)))))))
   (condition-case nil (let* ((json-array-type 'list) (json-key-type 
'string)) (json-read-from-string (let ((temp-buffer (generate-new-buffer 
" *temp*"))) (save-current-buffer (set-buffer temp-buffer) 
(unwind-protect (progn (url-insert-file-contents url) (prog1 
(buffer-string) (kill-buffer))) (and (buffer-name temp-buffer) 
(kill-buffer temp-buffer))))))) (json-readtable-error (error "Failed to 
read json")))
 
subsonic-get-json("https://funkwhale.juniorjpdj.pl/rest/getMusicDirectory.view?u=Festerdam&p=my-password&c=ElSonic&v=1.16.0&f=json&id=6321")
   (subsonic-tracks-parse (subsonic-get-json (subsonic-build-url 
"/getMusicDirectory.view" (list (cons "id" id)))))
   (setq tabulated-list-entries (subsonic-tracks-parse 
(subsonic-get-json (subsonic-build-url "/getMusicDirectory.view" (list 
(cons "id" id))))))
   subsonic-tracks-refresh("6321")
   (let ((new-buff (get-buffer-create "*subsonic-tracks*"))) (set-buffer 
new-buff) (subsonic-tracks-mode) (subsonic-tracks-refresh id) 
(tabulated-list-revert) (pop-to-buffer-same-window (current-buffer)))
   subsonic-tracks("6321")
   subsonic-open-tracks()
   funcall-interactively(subsonic-open-tracks)
   call-interactively(subsonic-open-tracks nil nil)
   command-execute(subsonic-open-tracks)

Re: Subsonic fails because id is number, not string.

Details
Message ID
<b8fe11320a3cef7809a97f2540077339@amk.ie>
In-Reply-To
<376f1ace-4a54-5e46-420c-114d4526a4e1@posteo.net> (view parent)
DKIM signature
missing
Download raw message
November 30, 2021 10:34 AM, festerdam@posteo.net wrote:

> Maybe it fails, because I haven't selected anything to be played? If 
> that is the case, then I think the user should be informed through a 
> message. I noticed that when I go to random albums (or probably some 
> other menu) and press RET on the options listed there I get: ...


I've pushed a fix for the message error when mpv hasnt started yet/doesnt have anything to play.

Would you be able to send me the body response from 
https://funkwhale.juniorjpdj.pl/rest/getMusicDirectory.view?u=Festerdam&p=my-password&c=ElSonic&v=1
16.0&f=json&id=6321

or any of the failing items? I'm not sure why this would be happening,
it should probably be a message as with the toggle not an error.

Thanks

Re: Subsonic fails because id is number, not string.

festerdam@posteo.net <festerdam@posteo.net>
Details
Message ID
<bb999657-c7de-2eb6-2741-c486954727a4@posteo.net>
In-Reply-To
<b8fe11320a3cef7809a97f2540077339@amk.ie> (view parent)
DKIM signature
missing
Download raw message
On 30/11/21 17:15, Alex McGrath wrote:
> November 30, 2021 10:34 AM, festerdam@posteo.net wrote:
> 
>> Maybe it fails, because I haven't selected anything to be played? If
>> that is the case, then I think the user should be informed through a
>> message. I noticed that when I go to random albums (or probably some
>> other menu) and press RET on the options listed there I get: ...
> 
> 
> I've pushed a fix for the message error when mpv hasnt started yet/doesnt have anything to play.
> 
> Would you be able to send me the body response from
> https://funkwhale.juniorjpdj.pl/rest/getMusicDirectory.view?u=Festerdam&p=my-password&c=ElSonic&v=1
> 16.0&f=json&id=6321
> 
> or any of the failing items? I'm not sure why this would be happening,
> it should probably be a message as with the toggle not an error.
> 
> Thanks
> 

Not sure if that's what you are asking but this is what curl outputs 
when opening the link:
<!doctype html>
<html lang="en">
<head>
   <title>Not Found</title>
</head>
<body>
   <h1>Not Found</h1><p>The requested resource was not found on this 
server.</p>
</body>
</html>

I can open artists, but albums for some reason cannot be opened.
Reply to thread Export thread (mbox)