IPB

Welcome Guest ( Log In | Register )

43 Pages V  « < 33 34 35 36 37 > »   
Reply to this topicStart new topic
HOW TO: synchronise your last.fm playback stats with foobar, ...works with CUI and DUI
salamich
post May 21 2013, 17:22
Post #851





Group: Members
Posts: 3
Joined: 21-May 13
Member No.: 108245



Thanks for this great script! Is it supposed to fetch scrobbles from other devices automatically in the background or do I have to do a full reimport each time? Didn't seem to catch them the first time i tried.
Go to the top of the page
+Quote Post
marc2003
post May 21 2013, 17:35
Post #852





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



if you the import right now then all the data is current.
then if you subsequently scrobble from other devices then of course the playcounts will be out of sync.
the background updates only work when you play the track again and listen to enough of it to count for another scrobble. it then fetches the new value including the scrobble(s) from other devices. but of course this only happens on a track by track basis and you might not even play tracks in foobar that you've recently scrobbled from another device.

either deal with it or run the full import on a semi-regular basis. tongue.gif

This post has been edited by marc2003: May 21 2013, 17:36
Go to the top of the page
+Quote Post
salamich
post May 21 2013, 18:03
Post #853





Group: Members
Posts: 3
Joined: 21-May 13
Member No.: 108245



OK thanks for the feedback smile.gif

Would it be possible to cache the last imported scrobble and allow incremental updates from there? I'm using lastfm2itunes to get the scrobbles into iTunes and these incremental updates work pretty well.
Go to the top of the page
+Quote Post
marc2003
post May 21 2013, 21:30
Post #854





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



i remember rejecting the request last time it was asked.

if i can figure out how to increment values in sqlite, it might be doable.... well actually i already know to increment values if they exist but i don't know how to combine this with writing a new record with a playcount of 1 if it doesn't.

edit: thinking about it some more, i'm not sure if i can really implement this properly. when i do i generate the timestamp to go back to? if it's from the last scrobble performed inside foobar, it could miss earlier scrobbles from other devices. or if it's from the last full import time, there would could be scrobbles since that will be artificially inflated by counting them again. at least with feeds i use, i'm getting actual values from last.fm rather than incrementing current db values by one for each play which is what that itunes thing does. i'm having serious doubts over how useful it can be.

This post has been edited by marc2003: May 21 2013, 21:43
Go to the top of the page
+Quote Post
salamich
post May 22 2013, 17:10
Post #855





Group: Members
Posts: 3
Joined: 21-May 13
Member No.: 108245



Ah I see, I thought you were already using the same full scrobble feeds (which would take a LOT longer during the initial import). The only safe way I can think of would be a second value for each track with the amount of times the play count was increased by the dynamic update, then deduct this from the new total and set it to 0 again after each incremental update. Sounds like a lot of work though so no worries, I'll just do a full re-import occasionally. Or bug you again if a better idea ever pops into my head wink.gif

Anyway, thanks again!
Go to the top of the page
+Quote Post
D.Sync
post May 24 2013, 11:03
Post #856





Group: Members
Posts: 186
Joined: 22-March 07
Member No.: 41742



Hi marc, once again thanks for your continuous effort for this wonderful script.

As I had been away from foobar2k scene for some time now and was just updating all my plugins. I realized that the loved track and scrobbling feature no longer works. When clicking the loved icon, the following was displayed from the console:

Last.fm Playcount Sync: Attempting to love "JUICY" by "Koda Kumi"
Last.fm Playcount Sync: Contacting Last.fm....
Last.fm Playcount Sync: Track loved successfully.

But the fact is nothing seemed to be updated in last.fm.

I'm currently using WSH v.1.5.6
Go to the top of the page
+Quote Post
marc2003
post May 24 2013, 11:20
Post #857





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



the scrobbling has nothing to do with me. you need foo_audioscrobbler for that.

the track loved successfully message is only shown when you get a very specific response from the last.fm servers saying that everything went ok.

how are you checking it? if the track has been recently scrobbled, you should see a heart icon next to it under recently listened tracks on your profile page. it should also appear under recent activity - also on your profile page. and when signed into last.fm, it should also show on the track page.

This post has been edited by marc2003: May 24 2013, 11:20
Go to the top of the page
+Quote Post
D.Sync
post May 24 2013, 14:20
Post #858





Group: Members
Posts: 186
Joined: 22-March 07
Member No.: 41742



QUOTE (marc2003 @ May 24 2013, 18:20) *
the scrobbling has nothing to do with me. you need foo_audioscrobbler for that.

the track loved successfully message is only shown when you get a very specific response from the last.fm servers saying that everything went ok.

how are you checking it? if the track has been recently scrobbled, you should see a heart icon next to it under recently listened tracks on your profile page. it should also appear under recent activity - also on your profile page. and when signed into last.fm, it should also show on the track page.


I see. Finally I found the problem. It turned out that I removed the _DB in the foo_customdb very long time ago. So instead of %LASTFM_LOVED_DB% I was using %LASTFM_LOVED%. Changing the name in the common7.js and matching the Action name with 'Customdb ...' make everything works now. Sorry for such silly question.

This post has been edited by D.Sync: May 24 2013, 14:49
Go to the top of the page
+Quote Post
marc2003
post May 24 2013, 15:00
Post #859





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



of course doing all that only affects what happens to the display in foobar and not on the website which is what you originally stated. unsure.gif

unless you really meant inside foobar when you said this? tongue.gif

QUOTE
But the fact is nothing seemed to be updated in last.fm.


This post has been edited by marc2003: May 24 2013, 15:03
Go to the top of the page
+Quote Post
Zageron
post May 31 2013, 07:43
Post #860





Group: Members
Posts: 40
Joined: 27-August 10
From: Canada
Member No.: 83420



Hey, how do albums like this work using sync?


They are all loaded with full musicbrainz information, and the songs are all actually called [untitled].
Go to the top of the page
+Quote Post
marc2003
post May 31 2013, 08:31
Post #861





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



are they scrobbled? if you see them on your profile, the script should fetch them but they will all be counted as one because the script only uses the artist and title.

Go to the top of the page
+Quote Post
Zageron
post May 31 2013, 19:08
Post #862





Group: Members
Posts: 40
Joined: 27-August 10
From: Canada
Member No.: 83420



QUOTE (marc2003 @ May 30 2013, 23:31) *
are they scrobbled? if you see them on your profile, the script should fetch them but they will all be counted as one because the script only uses the artist and title.


Any chance of adding the option of using more information, [mbid, trackid, length?] for building the playcount database?
Go to the top of the page
+Quote Post
marc2003
post May 31 2013, 19:30
Post #863





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



although you can submit the album and MB trackid when using foo_audioscrobbler, there really is nothing to differentiate this information when fetching it back from them. like i said, it's limited to artist/title.

This post has been edited by marc2003: May 31 2013, 20:10
Go to the top of the page
+Quote Post
Zageron
post May 31 2013, 19:54
Post #864





Group: Members
Posts: 40
Joined: 27-August 10
From: Canada
Member No.: 83420



QUOTE (marc2003 @ May 31 2013, 10:30) *
although you can submit the album and MB trackid when using foo_audioscrobbler, there really is nothing to differentiate this information when fetching info back from them. like i said, it's limited to artist/title.


Okay, just thought I'd ask. Thanks.
Go to the top of the page
+Quote Post
Calebzor
post May 31 2013, 22:18
Post #865





Group: Members
Posts: 2
Joined: 31-May 13
Member No.: 108421



Do I get this right, this plugin does not work with defaul UI, right?
Go to the top of the page
+Quote Post
marc2003
post Jun 1 2013, 05:41
Post #866





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



if you click back on your browser, you'll see it says something under the main thread title.

This post has been edited by marc2003: Jun 1 2013, 05:41
Go to the top of the page
+Quote Post
Calebzor
post Jun 1 2013, 10:41
Post #867





Group: Members
Posts: 2
Joined: 31-May 13
Member No.: 108421



Is there a way to love a song with a keyboard shortcut and have it automatically show up in foobar when you loved something?

So far I can either love a song in foobar and foo_softplaylists will send that to last.fm, but I have no way of displaying the love icon for this process in foobar

OR

I can set the custom DB LASTFM_LOVED_DB to 1, then I can display the little heart icon, but doing so won't send the info that I loved a track to last.fm.

Edit: I know that when playcount is updated so is the LASTFM_LVOED_DB, but that does not feel reliable at all.

This post has been edited by Calebzor: Jun 1 2013, 10:51
Go to the top of the page
+Quote Post
marc2003
post Jun 1 2013, 10:57
Post #868





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



QUOTE
Edit: I know that when playcount is updated so is the LASTFM_LVOED_DB, but that does not feel reliable at all.


make sure you love the track before half of it is played. tongue.gif

someone else ran into the same problem a page or two back and their solution was to create 2 keyboard shortcuts. i don't have anything better to suggest.
Go to the top of the page
+Quote Post
Zageron
post Jun 9 2013, 22:41
Post #869





Group: Members
Posts: 40
Joined: 27-August 10
From: Canada
Member No.: 83420



I cannot find a consistent reason as to why, but the local playcount fails to update on my system 100% of the time.

Some tracks work, patterns arise and fall, and then tracks that were working stop working.

All I can say is that:
"Last.fm Playcount Sync: Contacting Last.fm...." only get's the "Last.fm Playcount Sync: Playcount updated successfully." once in a while, in no particular pattern.

I have no internet intense applications running, I'm not downloading anything.

I though that it had something to do with the length of path/file, but after 10 minutes of testing it failed to be consistent.


Is there anything I can do to supply information that might help?
I had written up a large post of filepath comparisons, but it turned out to have nothing to do with it.

I looked into the update_track function and saw that it only makes 3 attempts. Since last.fm takes a fair amount of time to initially load on my machine, could this be the problem?

This post has been edited by Zageron: Jun 9 2013, 22:41
Go to the top of the page
+Quote Post
marc2003
post Jun 10 2013, 00:03
Post #870





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



QUOTE (Zageron @ Jun 9 2013, 22:41) *
Since last.fm takes a fair amount of time to initially load on my machine, could this be the problem?


not really sure what you mean by this? are you using the official last.fm scrobbler? if you are, you should pay attention to what i've put in the the readme.

QUOTE
1) For scrobbling, I recommend Florianís foo_audioscrobbler component found here:

http://www.mp3tag.de/en/fb2k.html

If you prefer the official Last.fm software, you need to access the Tools>Options>Scrobbling page and change it to at least 60%. The default of 50% conflicts with the way my script works. Itís far easier for people to change this setting than it is for me to implement support for both versions.


edit: are you using the stock foo_customdb .cfg file that i supply in the zip or do you have your own custom fields/actions as well?

This post has been edited by marc2003: Jun 10 2013, 00:08
Go to the top of the page
+Quote Post
Zageron
post Jun 10 2013, 00:46
Post #871





Group: Members
Posts: 40
Joined: 27-August 10
From: Canada
Member No.: 83420



I'm using foo_audioscrobbler 1.4.7.
I use your defaults for everything.

What I mean, when I say that last.fm takes a fair amount of time to load, is that when I load my home screen "http://www.last.fm/user/Zageron" it takes from 2-4 seconds before the page starts to load.
Go to the top of the page
+Quote Post
marc2003
post Jun 10 2013, 08:23
Post #872





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



i've updated the script to give a better of idea where it's failing. it now tells if the server response is ok but the update fails. it you still see no message then it means last.fm is not responding in a timely manner.

right click>Update script to get the latest version.
Go to the top of the page
+Quote Post
Zageron
post Jun 11 2013, 06:25
Post #873





Group: Members
Posts: 40
Joined: 27-August 10
From: Canada
Member No.: 83420



Last.fm Playcount Sync: Contacting Last.fm....
Last.fm Playcount Sync: Last.fm responded ok. Attempting to update playcount...
Last.fm Playcount Sync: Database error. Playcount not updated.

Haha.

What files should I delete in order to fix this. smile.gif
I have done a redownload of my statistics numerous times, and this doesn't seem to fix it. So perhaps just completely delete your plugin from foobar and do a fresh drag-and-drop??

Thanks so much!

This post has been edited by Zageron: Jun 11 2013, 06:26
Go to the top of the page
+Quote Post
marc2003
post Jun 11 2013, 08:52
Post #874





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



i must admit i don't know why that is happening. you haven't modified any files inside the marc2003 folder?

as i have no way to update the playcount cleanly from within foobar itself, i bundle an executable file called sqlite.exe (it's the official command line tool for working with sqlite databases which is what foo_customdb is based on). you mentioned earlier that it makes 3 attempts to run the command which updates the playcount. the reason it does this is because very occasionally the database goes get locked and it takes a 2nd attempt for it to work. during my own testing, i never saw it take more than 2 attempts which is why i set the limit to 3 just to be on the safe side. no one else has reported any problems so something else on your system might be interfering and blocking write access to the file but what that could be, i have no idea??? huh.gif
Go to the top of the page
+Quote Post
Zageron
post Jun 11 2013, 10:54
Post #875





Group: Members
Posts: 40
Joined: 27-August 10
From: Canada
Member No.: 83420



Well, I installed a fresh installation of foobar and reintegrated all of my components in a nice clean fashion.
The installation is fast and clean, and the customdb/wsh/sync components are all fresh downloads from their sources.
I imported the playcounts from the web, and I've successfully updated 5 songs in a row so far.

If I run into the problem again, I have a feeling it might possibly have something to do with my foobar installation being within my dropbox folder.
I'll let you know if I run into the problem again.

Thanks very much for the debug. smile.gif
Go to the top of the page
+Quote Post

43 Pages V  « < 33 34 35 36 37 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th December 2014 - 02:16