IPB

Welcome Guest ( Log In | Register )

43 Pages V  « < 34 35 36 37 38 > »   
Reply to this topicStart new topic
HOW TO: synchronise your last.fm playback stats with foobar, ...works with CUI and DUI
ubercow
post Jun 24 2013, 08:43
Post #876





Group: Members
Posts: 13
Joined: 17-October 10
Member No.: 84679



Hi marc

Could you elaborate on something please...if I love a track from the last.fm interface and then want the track's loved status to be updated in my library to reflect this, when exactly does this happen? If I play the song, will the loved status be fetched from the website and overwrite whatever status the track has in my database? At what point does this happen on playing the song, at the beginning or in the middle when the track would be scrobbled?

I have a feature request too, would it be possible to have separate menu options for just fetching the loved tracks again from the site, and the playcounts, and both? Playcount fetching takes quite a while and it would be nice to update just my loved tracks when I think they are out of sync, as the exact value of playcounts somehow seems less important to keep strictly up to date.

Thanks!
Go to the top of the page
+Quote Post
marc2003
post Jun 24 2013, 10:37
Post #877





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



QUOTE
If I play the song, will the loved status be fetched from the website and overwrite whatever status the track has in my database?


yes. but it would only get the new loved status when enough of it has been played to count for a scrobble.

if you know you've loved tracks via the website, you can update the local database by right clicking track(s) in the playlist and selecting Legacy Commands (unsorted)>Customdb Love 1.

i can split the import to let you get just the loved tracks. i'll post an update later.


This post has been edited by marc2003: Jun 24 2013, 10:40
Go to the top of the page
+Quote Post
ubercow
post Jun 24 2013, 12:23
Post #878





Group: Members
Posts: 13
Joined: 17-October 10
Member No.: 84679



QUOTE (marc2003 @ Jun 24 2013, 09:37) *
yes. but it would only get the new loved status when enough of it has been played to count for a scrobble.

i can split the import to let you get just the loved tracks. i'll post an update later.


Okay I thought so. Is this because the process is tied to the scrobbling process in any way or is it just so that the playcount is updated to include the current scrobble after it happens?

That's super thank you very much! laugh.gif
Go to the top of the page
+Quote Post
marc2003
post Jun 24 2013, 12:25
Post #879





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



right, there are now 2 options under Library import. there is now loved tracks and playcount which works the same as before. and there is now loved tracks only. i didn't think there was much point making a playcount only option.

right click>Update script.

edit: to answer your post which wasn't there when i started typing....it's just the way my script works. it could fetch the loved status at the beginning of a track. i just choose to update when enough of the track has been played for a scrobble. this is because i generally don't use anything external to foobar for scrobbling/loving tracks.

This post has been edited by marc2003: Jun 24 2013, 12:28
Go to the top of the page
+Quote Post
ubercow
post Jun 24 2013, 12:41
Post #880





Group: Members
Posts: 13
Joined: 17-October 10
Member No.: 84679



Works wonderfully, thank you.

I was just unsure what it was necessary to do after loving a track elsewhere but that makes perfect sense, seems like the best way to do it. It's nice and quick to update everything anyway now if I am unsure everything is synced smile.gif
Go to the top of the page
+Quote Post
Shizukasm
post Jun 27 2013, 02:59
Post #881





Group: Members
Posts: 10
Joined: 25-June 13
Member No.: 108806



First of all thanks a lot for your wonderful script and for your continued support, seriously! I have playback statistics configured here to always save statistics to file after changing them (so, for instance, if I rate the song it will add this in metadata form to the mp3, it also updates PLAYCOUNT with each play). What I would like to do is write %LASTFM_PLAYCOUNT_DB% to the metadata instead, is it possible?
Go to the top of the page
+Quote Post
marc2003
post Jun 27 2013, 12:59
Post #882





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



it used to be fairly easy to make that change with older versions of my script but i don't keep those any more. with all my recent changes, it's a lot more messy now and it's not so easy to modify. dry.gif

edit: i have found an older backup which should be easier to modify. i'll post that up later on.

This post has been edited by marc2003: Jun 27 2013, 13:03
Go to the top of the page
+Quote Post
Shizukasm
post Jun 29 2013, 20:31
Post #883





Group: Members
Posts: 10
Joined: 25-June 13
Member No.: 108806



QUOTE (marc2003 @ Jun 27 2013, 13:59) *
it used to be fairly easy to make that change with older versions of my script but i don't keep those any more. with all my recent changes, it's a lot more messy now and it's not so easy to modify. dry.gif

edit: i have found an older backup which should be easier to modify. i'll post that up later on.


Ahh great news! Thanks a lot.
Go to the top of the page
+Quote Post
marc2003
post Jun 29 2013, 20:35
Post #884





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



do you need it to love tracks as well or are you only interested in playcount?

i would have done it before now but i've been "busy" watching wimbledon all week. tongue.gif
Go to the top of the page
+Quote Post
Shizukasm
post Jun 29 2013, 21:10
Post #885





Group: Members
Posts: 10
Joined: 25-June 13
Member No.: 108806



QUOTE (marc2003 @ Jun 29 2013, 21:35) *
do you need it to love tracks as well or are you only interested in playcount?

i would have done it before now but i've been "busy" watching wimbledon all week. tongue.gif


I'm only interested in playcount.

Haha, don't worry too much, I'm grateful enough that you did the script already! Do it whenever you have time =)
Go to the top of the page
+Quote Post
marc2003
post Jun 29 2013, 21:16
Post #886





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



that makes it much easier for me and there is no play tomorrow so i'll do it then.
Go to the top of the page
+Quote Post
marc2003
post Jun 30 2013, 11:39
Post #887





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



here you go: https://dl.dropboxusercontent.com/u/2280132...count%20tag.txt

just stick that in a panel. there is nothing to click so it's just a grey background to match the default splitter colour. there are a few options on the right click menu. once you've done that, you can resize it to hide it.

to give yourself, a head start, you can transfer all values already in foo_customdb in to your file tags. simply select a bunch of files>right click>properties. now right click the playcount tag you want to store values in and then format from other fields. in the pattern dialog, enter

CODE
[%LASTFM_PLAYCOUNT_DB%]


This post has been edited by marc2003: Jun 30 2013, 11:41
Go to the top of the page
+Quote Post
Shizukasm
post Jun 30 2013, 14:06
Post #888





Group: Members
Posts: 10
Joined: 25-June 13
Member No.: 108806



QUOTE (marc2003 @ Jun 30 2013, 12:39) *
here you go: https://dl.dropboxusercontent.com/u/2280132...count%20tag.txt

just stick that in a panel. there is nothing to click so it's just a grey background to match the default splitter colour. there are a few options on the right click menu. once you've done that, you can resize it to hide it.

to give yourself, a head start, you can transfer all values already in foo_customdb in to your file tags. simply select a bunch of files>right click>properties. now right click the playcount tag you want to store values in and then format from other fields. in the pattern dialog, enter

CODE
[%LASTFM_PLAYCOUNT_DB%]


Hugeee thanks Marc, works perfectly wub.gif
Go to the top of the page
+Quote Post
flvinny521
post Jul 1 2013, 23:10
Post #889





Group: Members
Posts: 4
Joined: 1-July 13
Member No.: 108911



Instead of importing my loved tracks from last.fm, can I do a batch export? Let's say I want to love all the tracks from three albums, but I don't have the time to listen to them all so they're scrobbled. Instead, I play a few seconds of each track, and love them all using your script. How can I update last.fm with these new tracks?
Go to the top of the page
+Quote Post
marc2003
post Jul 1 2013, 23:56
Post #890





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



not really sure what you mean? if you love a track, it will appear in your last.fm library. you don't have to scrobble it for it to show. it just won't have any plays attached it.
Go to the top of the page
+Quote Post
flvinny521
post Jul 2 2013, 04:30
Post #891





Group: Members
Posts: 4
Joined: 1-July 13
Member No.: 108911



QUOTE (marc2003 @ Jul 1 2013, 18:56) *
not really sure what you mean? if you love a track, it will appear in your last.fm library. you don't have to scrobble it for it to show. it just won't have any plays attached it.


I tested this with a track that I had verified was not loved on last.fm. I played it very briefly and loved it using your script. Then I played it again, in full, so that it would be scrobbled, and as soon as it was, the loved status disappeared.

I'd like to be able to love a large number of tracks locally and then have that information synced to last.fm, but it seems that the last.fm status overrides any change I make locally. Does that make sense, or am I not explaining myself correctly?
Go to the top of the page
+Quote Post
marc2003
post Jul 2 2013, 07:35
Post #892





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



QUOTE (flvinny521 @ Jul 2 2013, 04:30) *
I played it very briefly and loved it using your script.


this should update last.fm immediately and the local database only updates when you get a successful response from last.fm. you should see success/failure messages in the console. also, right click a track in the playlist>properties>properties tab. you should see a Custom database section under the tech info.

if you wanted to love numerous tracks quickly then the best bet would be to actually stop playback. select a track, love it, wait for response. select another track, love it, wait and so on. (and when i say wait - it may take a second or 2 at most)

QUOTE
Then I played it again, in full, so that it would be scrobbled, and as soon as it was, the loved status disappeared.


i don't see how this could happen. the loved status would not update locally if there was no success response from last.fm. then when you play the track, the only way the loved status could disappear is if the response during the auto-update was that the track is not loved????

are you using the latest version of my script downloaded from this thread? it's not some modified version you found elsewhere? you can also check to see tracks that are loved on the recent activity section of your last.fm profile. you'll find this on the top right of your profile page.
Go to the top of the page
+Quote Post
flvinny521
post Jul 2 2013, 15:29
Post #893





Group: Members
Posts: 4
Joined: 1-July 13
Member No.: 108911



Yes, I am using the script from this thread, and yesterday I updated it from within foobar. I tried doing another import of both loved tracks and playcounts, hoping to start fresh, but there are still some tracks that show they are loved in foobar which are not present on last.fm. How can I clear the local database so when I perform a sync, there should be no discrepancies?

Edit - Also, I think the issue began when I started using a global hotkey to love and unlove tracks. I see in the console that using the hotkey, while it does apparently set the "customdblove" value to 1, there is actually no communication to last.fm However, if I click on the heart icon, the request is sent to last.fm correctly.

This post has been edited by flvinny521: Jul 2 2013, 15:33
Go to the top of the page
+Quote Post
marc2003
post Jul 2 2013, 15:46
Post #894





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



well you've discovered the problem by yourself. those context menu items are only there for my script to update the local database. they are only supposed to be triggered by my script when loving/unloving tracks via the button or during playback when enough of the track has played to count for a scrobble.

triggering them via hotkeys only updates the local database and bypasses my script completely.

the database file is named customdb_sqlite.db in your foobar2000 profile folder if you want to delete it and start again.

This post has been edited by marc2003: Jul 2 2013, 16:00
Go to the top of the page
+Quote Post
flvinny521
post Jul 2 2013, 19:16
Post #895





Group: Members
Posts: 4
Joined: 1-July 13
Member No.: 108911



QUOTE (marc2003 @ Jul 2 2013, 10:46) *
well you've discovered the problem by yourself. those context menu items are only there for my script to update the local database. they are only supposed to be triggered by my script when loving/unloving tracks via the button or during playback when enough of the track has played to count for a scrobble.

triggering them via hotkeys only updates the local database and bypasses my script completely.

the database file is named customdb_sqlite.db in your foobar2000 profile folder if you want to delete it and start again.


Thanks for your help; seems like everything is working as it should.
Go to the top of the page
+Quote Post
Kanapka
post Aug 2 2013, 12:51
Post #896





Group: Members
Posts: 3
Joined: 2-August 13
Member No.: 109426



It's probably stupid question, but... Where I can find Library import? :|
Go to the top of the page
+Quote Post
marc2003
post Aug 2 2013, 14:07
Post #897





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



you need to right click the actual heart icon to get the full menu.
Go to the top of the page
+Quote Post
Kanapka
post Aug 3 2013, 09:42
Post #898





Group: Members
Posts: 3
Joined: 2-August 13
Member No.: 109426



Thanks. Now I've got another problem. Why this script doesn't synchronizes all of my ~20000 plays, but reaches ~4200, and then stops? Example of problem:


Console after finished syncing:


Thanks in advance, and sorry for my English. I know it's terrible.
Go to the top of the page
+Quote Post
aztec_mystic
post Aug 3 2013, 09:44
Post #899





Group: Members
Posts: 93
Joined: 28-March 13
Member No.: 107425



QUOTE (Kanapka @ Aug 3 2013, 10:42) *
Thanks. Now I've got another problem. Why this script doesn't synchronizes all of my ~20000 plays, but reaches ~4200, and then stops? Example of problem

Looks as if it synced everything. Some tracks were played multiple times.
Go to the top of the page
+Quote Post
Kanapka
post Aug 3 2013, 10:40
Post #900





Group: Members
Posts: 3
Joined: 2-August 13
Member No.: 109426



QUOTE (aztec_mystic @ Aug 3 2013, 09:44) *
QUOTE (Kanapka @ Aug 3 2013, 10:42) *
Thanks. Now I've got another problem. Why this script doesn't synchronizes all of my ~20000 plays, but reaches ~4200, and then stops? Example of problem

Looks as if it synced everything. Some tracks were played multiple times.



Some of albums, that I don't listened to in a long time, are synchronizing only when I scrobble them. Example:

(before listening to whole album)


(after)

EDIT:
It's probably because of last.fm who corrects artist tag from "Snoop Doggy Dogg" to "Snoop Dogg". I'm sorry, my fault

This post has been edited by Kanapka: Aug 3 2013, 10:41
Go to the top of the page
+Quote Post

43 Pages V  « < 34 35 36 37 38 > » 
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: 26th November 2014 - 23:06