IPB

Welcome Guest ( Log In | Register )

43 Pages V  « < 32 33 34 35 36 > »   
Reply to this topicStart new topic
HOW TO: synchronise your last.fm playback stats with foobar, ...works with CUI and DUI
marc2003
post Apr 19 2013, 10:44
Post #826





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



QUOTE (Kougeru @ Apr 19 2013, 07:51) *
Apparently either the artist name had a space after it


heh, you're not quite as anal as you thought. you can select files in your playlist>right click>properties and right click various fields and select clean up. this will remove any leading/trailing whitespace.

This post has been edited by marc2003: Apr 19 2013, 10:44
Go to the top of the page
+Quote Post
Kougeru
post Apr 20 2013, 00:06
Post #827





Group: Members
Posts: 56
Joined: 17-June 08
Member No.: 54459



QUOTE (marc2003 @ Apr 19 2013, 04:44) *
QUOTE (Kougeru @ Apr 19 2013, 07:51) *
Apparently either the artist name had a space after it


heh, you're not quite as anal as you thought. you can select files in your playlist>right click>properties and right click various fields and select clean up. this will remove any leading/trailing whitespace.


XD Very true, it seems. As long as I don't notice it =P. Also, thank you for this tip! This will save me A LOT of time. Thank you very much for both this plugin and all the help you've given.
Go to the top of the page
+Quote Post
ALuserX
post Apr 24 2013, 22:30
Post #828





Group: Members
Posts: 1
Joined: 24-April 13
Member No.: 107824



Dear Marc,
thank you so much for creating this script+manual, that does almost exactly what I wanted and works like a charm.

One thing I want you to ask is if it could be possible to do the same with radio streams.
I listen to an internet radio pretty often and it would be awesome if I could "love" the tracks I like, so that later I could check out the list of loved tracks to get the whole album or something like that. foo_audioscrobbler manages to scrobble tracks from the radio-stream that I added to the playlist with "Add location...", but when I try to like a song that's playing at the moment it sais:

Last.fm Playcount Sync: Contacting Last.fm....
Last.fm Playcount Sync: Artist / track not found.

It's not like it's a must-have-feature or many people would need this, but I hope that if there will be a new version of your script one day, that would be to add a useful feature like this one (if it's even possible). smile.gif

Thank you once more!
Cheers,
Alex

This post has been edited by ALuserX: Apr 24 2013, 22:32
Go to the top of the page
+Quote Post
marc2003
post Apr 25 2013, 09:39
Post #829





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



i think you missed out the important part of the console output. it's the foo_softplaylists component that actually "loves" tracks and i don't think that works with dynamic titles in streams.
Go to the top of the page
+Quote Post
VlaKor
post Apr 27 2013, 19:39
Post #830





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



Hi? help please
"Automatically love tracks" $ifequal(%rating%,5,1,0) don't work!
Go to the top of the page
+Quote Post
marc2003
post Apr 27 2013, 19:46
Post #831





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



maybe you have foo_playcount installed but you want to use ratings that exist in your file tags? if that is the case, you should use

CODE
$ifequal($meta(rating),5,1,0)


This post has been edited by marc2003: Apr 27 2013, 19:50
Go to the top of the page
+Quote Post
VlaKor
post Apr 27 2013, 20:07
Post #832





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



foo_playcount - installed
I use rating not in the tags
Go to the top of the page
+Quote Post
VlaKor
post Apr 27 2013, 20:23
Post #833





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



Understood.
First, you put a rating of 5 and then play the track.
Go to the top of the page
+Quote Post
marc2003
post Apr 27 2013, 20:23
Post #834





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



well the original should work then. i have foo_playcount installed and this is how i can tell it works from looking in the console.



a track has to be playing for 3 seconds for it to trigger.
Go to the top of the page
+Quote Post
VlaKor
post Apr 27 2013, 20:42
Post #835





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



Thank you
It Did not work because I play track, and then put the rating.
We must first set the rating, and then play track )))
Go to the top of the page
+Quote Post
marc2003
post Apr 27 2013, 20:54
Post #836





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



i'll have to think about triggering it when a rating is updated during playback. i think someone asked for this before but i forgot about it. tongue.gif
Go to the top of the page
+Quote Post
marc2003
post Apr 28 2013, 00:28
Post #837





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



script updated. https://dl.dropboxusercontent.com/u/2280132...ount%20sync.zip

if enabled, the auto-love feature now triggers if title formatting changes to meet the required condition during playback. previously it would only check on playback start.

files changed:
CODE
marc2003\common7.js
playcount sync readme\playcount sync.txt


This post has been edited by marc2003: Apr 28 2013, 00:29
Go to the top of the page
+Quote Post
VlaKor
post Apr 28 2013, 09:54
Post #838





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



Great!
Go to the top of the page
+Quote Post
VlaKor
post Apr 28 2013, 09:57
Post #839





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



And it is possible in the opposite direction?
Love tracks > 5 rayting?
Go to the top of the page
+Quote Post
marc2003
post Apr 28 2013, 10:59
Post #840





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



i won't be adding it to my script but here's a workaround to go in your panel. on line 63, replace this....

CODE
b.lbtn_up(x, y);


with

CODE
if (b.buttons.ps.trace(x, y) && ps.old_userloved == 0) fb.RunContextCommandWithMetadb("Rating/5", p.metadb);
b.lbtn_up(x, y);


Go to the top of the page
+Quote Post
VlaKor
post Apr 28 2013, 17:01
Post #841





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



Great!
All Love tracks > 5 rayting? It is possible to synchronize?

For earlier thanks.
Go to the top of the page
+Quote Post
marc2003
post Apr 28 2013, 17:18
Post #842





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



you can find all loved tracks by using main menu>library>search.

CODE
%LASTFM_LOVED_DB% IS 1


then right click the results>playback statistics>rating>5
Go to the top of the page
+Quote Post
VlaKor
post Apr 28 2013, 17:33
Post #843





Group: Members
Posts: 10
Joined: 13-April 13
Member No.: 107650



Genius!!!
Autoplaylist created )))

This post has been edited by VlaKor: Apr 28 2013, 17:47
Go to the top of the page
+Quote Post
marc2003
post Apr 30 2013, 04:51
Post #844





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



updated: right click>Update script will work for anyone who has updated since the 2nd april. otherwise full download is here: https://dl.dropboxusercontent.com/u/2280132...ount%20sync.zip
i've created a changelog blink.gif https://dl.dropboxusercontent.com/u/2280132...e/changelog.txt

CODE
7.2013.04.30.01

Script no longer requires foo_softplaylists to love tracks.
Right click the panel to set your password. Although you
enter it in plain text, it's not saved anywhere. It's just
used temporarily to authenticate once with Last.fm.


This post has been edited by marc2003: Apr 30 2013, 04:52
Go to the top of the page
+Quote Post
marc2003
post May 1 2013, 02:51
Post #845





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



another update: https://dl.dropboxusercontent.com/u/2280132...e/changelog.txt

CODE
7.2013.05.01.01

Now supports artist field remapping for loving/unloving
tracks and auto-updates. This might be handy if you want to
submit just the first value of a multi-value tag eg:
$meta(artist,0). For best results it should match what you set
in the foo_audioscrobbler preferences.


for existing users, right click>Update script should work but there will be an additional step to take after the restart. just follow the dialog box.

full download: https://dl.dropboxusercontent.com/u/2280132...ount%20sync.zip

files changed:
CODE
marc2003\common7.js
playcount sync readme\playcount sync.txt


This post has been edited by marc2003: May 1 2013, 02:53
Go to the top of the page
+Quote Post
marc2003
post May 1 2013, 16:26
Post #846





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



could a kind moderator please replace the entire contents of the first post with this....


this isn't a proper component but a script which utilises 2 other components (WSH panel mod & foo_customdb) to do the following:

-it can import the playcount/loved tracks from your entire last.fm library into foobar. it uses foo_customdb so your files are not touched.
-after doing the library import it will automatically update in the background as you listen.
-it can love/unlove tracks on last.fm via a button.
-it can automatically love tracks when they are played based on title formatting (for example, it can be set to automatically love tracks with a RATING of 5)
-you can display/filter the data in any custom columns, library viewers, display panels, etc using these simple tags:

CODE
%LASTFM_PLAYCOUNT_DB%
%LASTFM_LOVED_DB% //has a value of 1 for loved tracks


full instructions can be found here: https://dl.dropboxusercontent.com/u/2280132...ount%20sync.zip
changelog: https://dl.dropboxusercontent.com/u/2280132...e/changelog.txt

updated 30/04/13: no longer requires foo_softplaylists meaning artist field remapping is supported for loving tracks and background updates.

This post has been edited by marc2003: May 1 2013, 16:30
Go to the top of the page
+Quote Post
marc2003
post May 7 2013, 11:40
Post #847





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



if anybody has been following the other WSH script thread or looks at deviantart, you may have noticed falstaff/br3tt has created a new fully featured playlist in WSH panel mod. it has customisable columns which means you can change it to display your last.fm info but the best part is that it allows you to click a "heart" icon to set the "mood" for any track. by default this tags your files but with his permission i've created a modification that allows it to love/unlove any playlist item on last.fm regardless of what is now playing.

here is what you need to do:

-you must be running the very latest version of my script in this thread. existing users should check inside the panel and look at line 10. it should read:

CODE
p.version = "7.2013-05-01.01";


if it doesn't, you need to re-download the full zip, extract the marc2003 folder and import the new playcount sync.txt file. then right click the panel to set your password as it no longer uses foo_softplaylists to love tracks. it does it natively now.

-if your panel version is already current, you should right click>Update script to make sure the background file is up to date as well.

-you need version 0.0.7 of falstaff's script and make sure you install the guifx v2 transports font on his page as well.

http://browse.deviantart.com/art/WSH-Playl...0-0-7-368997689

-now you need to download my modified file from here. https://dl.dropboxusercontent.com/u/2280132.../WSHplaylist.js

-it needs to be saved in your profile folder\wsh_br3tt\js folder, over writing the file that is already there. make sure foobar is closed while you do this.

-with your playlist now installed, you can customise the "mood" column to display your last.fm loved status instead. right click the column>edit this column>pattern

CODE
$ifequal(%LASTFM_LOVED_DB%,1,1,0)


-there is no plays column by default, so right click any column header>columns>plays to add it.

-now right click the Plays header>edit this column>pattern and enter

CODE
[%LASTFM_PLAYCOUNT_DB%]


you should now have something that looks like this:



now you can click the "heart" of any playlist item and it will love/unlove the track depending on the current value and it should update the playlist almost immediately. check the foobar console for success/failure messages.

you may want to hide my "button" out of the way somewhere but it must be active in your layout. it "listens" for notifications from the playlist to do the communication with last.fm.
Go to the top of the page
+Quote Post
ubercow
post May 19 2013, 14:37
Post #848





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



Hi, thanks for the script I absolutely love it.

I'm having trouble with tracks with an ampersand in the artist or title field. When I try to love them with your button, the console shows:

Last.fm Playcount Sync: Invalid method signature supplied


and the track is not loved, in the library or on last.fm. Is this a bug or have I done something wrong?

This post has been edited by ubercow: May 19 2013, 14:39
Go to the top of the page
+Quote Post
marc2003
post May 19 2013, 15:54
Post #849





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



oh fudge. i could have sworn i had this working during testing. i know i had to make changes late on with the md5 hasher i used so i obviously didn't go back and test again. it should be fixed now.

existing users: right click>Update script.
full download: https://dl.dropboxusercontent.com/u/2280132...ount%20sync.zip
changelog: https://dl.dropboxusercontent.com/u/2280132...e/changelog.txt

thanks for spotting my mistake. dry.gif

This post has been edited by marc2003: May 19 2013, 15:56
Go to the top of the page
+Quote Post
ubercow
post May 19 2013, 16:01
Post #850





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



Well that was quick, thanks very much marc, it works perfectly now!
Go to the top of the page
+Quote Post

43 Pages V  « < 32 33 34 35 36 > » 
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: 20th December 2014 - 09:21