mocp-scrobbler

Forum rules
General talk about software - if the program is not in the repos, please links to the developer's page or github.
User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

mocp-scrobbler

Unread post by ivanovnegro » Thu Jul 03, 2014 10:54 am

You may have noticed that the (buggy) lastfmsubmitd package was removed from Debian Testing/Sid and maybe you need a replacement for MOC to be able to scrobble to last.fm.

There is an ancient CLI script that just does this and it does it even better.

https://github.com/fluxid/mocp-scrobbler

Everything is in the readme, so I do not have to explain anything here. It just needs Python, sorry Pidsley. :)

Though you have to change one thing in the mocp-scrobbler.py file. Add python3 to the first line that says:

Code: Select all

#!/usr/bin/env
so that it looks like this:

Code: Select all

#!/usr/bin/env python3 
Save and run the script from your path or from wherever the fuck you prefer it :), e.g. :

Code: Select all

~/Scripts/mocp-scrobbler.py
Last edited by ivanovnegro on Thu Jul 03, 2014 10:55 am, edited 1 time in total.
Reason: typo

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: mocp-scrobbler

Unread post by rhowaldt » Thu Jul 03, 2014 1:08 pm

ancient CLI-scripts ftw. thanks ivo!
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: mocp-scrobbler

Unread post by kexolino » Tue Jul 08, 2014 8:43 pm

Does this scrobble immediately like lastfmsubmitd?

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: mocp-scrobbler

Unread post by ivanovnegro » Wed Jul 09, 2014 11:45 am

It scrobbles after 50 % and that makes more sense IMO if that is what you ask.

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: mocp-scrobbler

Unread post by kexolino » Wed Jul 09, 2014 11:51 am

Yeah, that's good. Lastfmsubmitd scrobbled a lot of tracks that I didn't actually listen to.

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: mocp-scrobbler

Unread post by ivanovnegro » Wed Jul 09, 2014 11:57 am

mocp-scrobbler has even nice messages, progress, what it scrobbles (title, artist, album) and if the server is down and if it is down it tries to connect again after 10 seconds. Though I see 90 %, maybe after 90 % it scrobbles, not sure where I read 50.

Code: Select all

Now playing: Emin Fındıkoglu - Çeçen Kızı (Bosporus Bridges)
Scrobbling [on 90%]
Now playing: Mustafa Özkent - Dolana Dolana (Bosporus Bridges)
Scrobbling [on 90%]
Now playing: Erkut Taçkın - Sevmek İstiyorum (Bosporus Bridges)
Scrobbling [on 90%]
Now playing: Fikret Kızılok - Aybattı (Bosporus Bridges)
Scrobbling [on 90%]
Now playing: Erkin Koray - Karlı Dağlar (Bosporus Bridges)
Scrobbling [on 90%]
Now playing: Aksu Orkestrası - Bermuda Şeytan Üçgeni (Bosporus Bridges)
Scrobbling [on 90%]
Now playing: Ferdi Özbeğen - Köprüden Geçti Gelin (Bosporus Bridges)
Scrobbling [on 90%]
Now playing: Erol Pekcan - Şenlik (Bosporus Bridges)

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: mocp-scrobbler

Unread post by machinebacon » Wed Jul 09, 2014 11:59 am

In the mocp-scropbbler.py right in the first section there is:

_SCROB_FRAC = 0.9

I guess this is the time when it scrobbles ( so 0.9 of 1.0 - 90% )
..gnutella..

Post Reply