Since the days of
LiveJournal, some people have learned how to fill in the music / mood fields, however there were some minor problems: if you write from the web interface, you will have to enter the song yourself. It, at least, is inconvenient. Desktop clients helped, which automatically inserted the current song from winamp into this field (I did not check it on others).
Not much time passed, and I decided to teach my blog to show everyone the song that I was listening to at the moment. There are several ways:
- When each next song begins - go to the admin panel and edit the current song with your hands.
- Hire a man who will do it for me.
- Automate this process
I chose, of course, the last option, and this is what I got:
- Take advantage of ready-made solutions at the level of “downloaded — put — works”
- Take advantage of the service Last.fm
The first option had to be abandoned unintentionally. The fact is that I listen to music in iTunes under MacOS, and I found nothing good for such a configuration. There were some options, but everything was complicated and confusing.
There was a second option, and he chose it. And now, step by step, what and how I did:
- Create an account for Last.fm (if it does not already exist).
- We download the local program (there are versions for Windows, MacOS and Linux).
')

- Install the program, and wait for it to complete the automatic configuration.
In principle, right now in the program you can see the songs that you listen to in your clients (if these clients are supported by the program). At the same time, they scramble (or something like that) - they are uploaded to a Last.fm server to analyze your preferences. - Then there are two options:
- If you do not feel the strength or do not want to bother - go here and swing it . This is a plugin (widget) for Wordpress, which in a separate block displays information about the song (or about songs, depending on the settings). You just need to copy it to the folder to the plugins, activate it in the admin panel, and place it on one of the sidebars in the “Widgets” tab. After specifying a pair of settings - voila!
If for one reason or another the blocks are not displayed in your name - list the required page in the code of the lastfm_tracks ('username'); and get the default mapping. Description of the function arguments here . - If you have free time, knowledge and desire - welcome here . If all of the above qualities you really have in abundance - you will understand what to do with this link ;-)
- Already, everything should work!
So, the advantages of this method:
- Quickly
- Customizable
- Conveniently
Minuses:
- You need to have a constantly running Last.fm client
- There is a difference of about 1-2 tracks between my iTunes and blog information (on the blog the delay
In order to avoid unnecessary words and unreasonable criticism, I’ll immediately note: I was looking for universal methods (convenient, fast and cross-platform), and the article was written, first of all, in order not to forget tomorrow what I was doing today =)
If you have questions - write in the comments, if possible answer.