Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get this to work with VLC? #178

Closed
kitesi opened this issue Dec 6, 2022 · 3 comments · May be fixed by #389
Closed

How do I get this to work with VLC? #178

kitesi opened this issue Dec 6, 2022 · 3 comments · May be fixed by #389

Comments

@kitesi
Copy link

kitesi commented Dec 6, 2022

I use VLC for my audio listening. How would I scrobble from VLC? I have read the README, and I'm guessing VLC has to make requests to the server, but I'm not sure how to setup vlc to do so. I have looked in the settings and their is a scrobbler setting which takes in a URL, username and password, but the title is "Submission of played songs to LastFM" so I'm not sure if it would work here. Regardless, I tried it, and it didn't work.

@FoxxMD
Copy link
Contributor

FoxxMD commented Dec 7, 2022

I didn't know VLC provided scrobbling! Some more info I found while trying to debug this:

Find the settings for this in

  • Tools -> Preferences
  • In the bottom left under "Show Settings" click All
  • Interface -> Control interfaces
    • Check Submission of played songs to last.fm
    • -> Audioscrobbler <--- settings located here

Scrobbler URL

The default value is audioscrobbler which makes me think it can use that protocol...

The value in this setting must be without protocol prefix. VLC also assumes protocol is http (can't use https)

IE my maloja endpoint is http://scrobble.myWebdomain.com then Scrobble URL starts with scrobble.myWebdomain.com

Scrobble Logs

Logging VLC output by running from CLI i get these results using maloja endpoints:

Using Audioscrobbler v1.2

scrobble.myWebdomain.com/apis/audioscrobbler_legacy as Scrobble URL

[foxx@foxx-arch ~]$ vlc
VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000561cd695b550] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000561cd69f8c30] main playlist: playlist is empty
[0000561cd6a631e0] audioscrobbler interface error: Authentication failed, handshaking again (HTTP/1.1 403 Forbidden
Connection: close
Content-Length: 11
Content-Type: text/html; charset=UTF-8
Date: Wed, 07 Dec 2022 20:28:18 GMT
Server: waitress

)

Using Audioscrobbler

scrobble.myWebdomain.com/apis/audioscrobbler as Scrobble URL

[foxx@foxx-arch ~]$ vlc
VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
[00005594beae9550] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00005594beb86c30] main playlist: playlist is empty
[00007f8dfc00e660] access stream error: HTTP 404 error
[00007f8dfc00e660] http stream error: error: HTTP/1.0 404 Not Found
[00005594bebf1310] main interface error: no suitable access module for `http://scrobble.myWebdomain.com/apis/audioscrobbler/?hs=true&p=1.2&c=vlc&v=3.0.17.4&u=dfdsf&t=1670444722&a=bdbaf4ca534bbb88e08e6ba7012f6136'

Sidenote: Looks like there is a patch to add listenbrainz protocol for VLC but it seems stuck in limbo:
vlc-devel PATCH Add module to submit listens to ListenBrainz.

@FoxxMD
Copy link
Contributor

FoxxMD commented Mar 7, 2023

@kitesi

This isn't a true solution for you but as a workaround: if you use linux you can use MPRIS with multi-scrobbler to scrobble from VLC to maloja. The MPRIS source is available on foxxmd/multi-scrobbler:develop docker image or develop git branch.

@kitesi
Copy link
Author

kitesi commented Mar 9, 2023

Thank you, I'll check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants