spazghost / last-cmus

Automatically exported from code.google.com/p/last-cmus
0 stars 0 forks source link

RFE - don't submit track to last.fm until it has been played for at least X seconds #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Just a request for enhancement, I would like to see last-cmus only submit
the file if it's been playing for at least X seconds, where X would be
something like 30.

In order to do this, it would probably have to keep track of the previous
audio file, and make sure it played for as least X seconds the next time
the script was called (and then scrobble it).

I'd just like this as I tend to just use "next" to cycle through 15 songs
at a time until I find one I like, and last-cmus will scrobble all of them,
even though they're only played for 1-2 seconds.

Original issue reported on code.google.com by matthew....@gmail.com on 4 Sep 2008 at 2:28

GoogleCodeExporter commented 8 years ago
I agree, this would make the script much more useful.

Original comment by lightbul...@gmail.com on 17 Mar 2009 at 10:16

GoogleCodeExporter commented 8 years ago
Yes, please add this feature. It would be great.

Original comment by aditya.s...@gmail.com on 4 Nov 2009 at 11:14

GoogleCodeExporter commented 8 years ago
I wonder whether it is possible at all. As far as I understand cmus sends info 
to 
last-cmus when it changes the song, so there is no possibility to check if the 
song is 
later played for some time. Am I right?

Original comment by inquebra...@gmail.com on 14 Jan 2010 at 12:02

GoogleCodeExporter commented 8 years ago
It's cool!!! :D

Original comment by xubuntub...@gmail.com on 2 Feb 2011 at 6:27

GoogleCodeExporter commented 8 years ago
So does it work now..? In a similar python script for MOC they have solved it: 
http://lukeplant.me.uk/blog/posts/moc-and-last-fm/

if anyone made it work please post here!

Original comment by sairus....@gmail.com on 18 Mar 2011 at 2:05

GoogleCodeExporter commented 8 years ago
@3 (inque) - Wouldn't it be possible to record the time at which cmus send the 
original info, and assuming that no new data has been sent in the meantime, 
check back in X seconds through "cmus-remote -Q"?

In other news, I am now trawling through stack overflow to learn exactly how to 
do this.

Original comment by Denholm....@gmail.com on 28 Mar 2011 at 2:44