• flippet disse...
    • Usuário
    • Jan 22 2005, 15h18

    Winamp plugin

    http://www.flippet.org/gen_lastfm/

    ...is a plugin to control last.fm from within Winamp.

    It has added menu options to start the stream and change station, and the play, next and previous track buttons on the main winamp window are overridden to provide the love, skip and ban functions respectively.

    It doesn't do the "now playing" gubbins, because I've no idea where to show it... :-/

    It's a very early version, probably full of computer-destroying bugs, so use at your own risk et cetera. It has a bug where it sometimes crashes when closing winamp but other than that it seems stable and unobtrusive enough.

    Please let me know how you get on if you give it a try!

    Phil

    "Cattle Prods solve most of life's little problems."
    • disse...
    • Usuário
    • Jan 26 2005, 3h37

    Re: Winamp plugin

    Quoth flippet:
    Please let me know how you get on if you give it a try!


    Would love to help hammer this one out (with my lack of coding skills, haha), but I can't get it to work! The config window doesn't popup, and I can't edit the ini to include my password, since I'm not md5-enabled, myself... Will try reinstalling (a third time, not too much faith in it, heh)...

    EDIT: http://www.flippet.org/gen_lastfm/gen_lastfm_0.1.zip is what the link points to. I downloaded 0.2 and it seems to be working fine, so far! :D

    EDIT again: correct link to v0.2, in case flippet doesn't get around to fixing the link on his page anytime soon. :}

    Editado por um usuário excluído em Jan 26 2005, 4h20
    • flippet disse...
    • Usuário
    • Jan 26 2005, 19h30
    /me slaps forehead

    Brain fart, sorry about that.

    I've just uploaded a new version that fixes the occasional crash when closing down winamp. Hopefully I managed to get the link right this time!

    http://www.flippet.org/gen_lastfm/
    http://www.flippet.org/gen_lastfm/gen_lastfm_0.3.zip

    Phil

    "Cattle Prods solve most of life's little problems."
    • por disse...
    • Equipe
    • Jan 26 2005, 22h43
    nice, thanks

    • Archagon disse...
    • Usuário
    • Jan 27 2005, 4h02
    FINALLY! Thank you!

    Suggestions:
    * Display proper Artist/Album info (preferably configurable with % tags)
    * Display Last.fm info sheet under "Now Playing"
    * Display Last.fm under "Streaming Media"

    Editado por Archagon em Jan 27 2005, 4h04
    • disse...
    • Usuário
    • Jan 27 2005, 13h35
    I think a menu option that opens the log would be handy. And since you don't know where to write the Now Playing info... have you tried browsing the Nullsoft forums? I skimmed through a bit the other day to try to help you out, but my lack of coding knowledge really makes me no help, I think...

    • flippet disse...
    • Usuário
    • Jan 29 2005, 11h20
    The winamp forums were most helpful, thanks... I'm actually getting somewhere now! This is a development build:



    The problem I've run into now is that it detects a playing stream by "last.mp3?Session=" in the title; now it has the proper title it doesn't anymore, so it stops doing anything... :/

    Phil

    "Cattle Prods solve most of life's little problems."
    • Matroc disse...
    • Usuário
    • Jan 29 2005, 21h48
    wow, thats what i was waiting for :-D

    but 2 small sugestions to make it even better :-)

    1. would be really cool if i could change the "button assignments" because i've got one of those multimedia keyboards that has only a "play/pause" button, so pressing it wil pause the playback and not "love" the playing song. so for my personal case i would configure it like stop=love instead of play=love

    2. the generated songname string is a bit long imho. "artist - track" would be enough for me because in my now playing popuper the end of the string sometimes gets cut off

    • flippet disse...
    • Usuário
    • Jan 30 2005, 1h38
    (1) can probably be arranged; it's something I hadn't thought of. I have a load of extra keys on my keyboard which control winamp; I've hooked them up to WACommand so they send exactly the same commands as pressing the buttons in Winamp.

    Changing the assignments should be pretty easy though, so I'll see what I can do.

    (2) is what I'd like to get working tomorrow; at the moment the string is just hard coded so I could get it working. It's too long for my liking now, and there are some fields that are returned from the web service that aren't displayed, such as which user a track came from and the track length. I've been looking at how Winamp does title formatting to see if I can hijack this or just make my own. Watch this space... :)

    Thanks for the feedback!

    Phil

    "Cattle Prods solve most of life's little problems."
    • Matroc disse...
    • Usuário
    • Jan 30 2005, 15h47
    how about writing the infos you get from the server and that cant be handled by winamp easyly (like album pictures, album name etc.) to a file? there are many ways to parse an simple ascii text file or an (jpg?) image.

    and btw. the song length could be set...

    • flippet disse...
    • Usuário
    • Jan 30 2005, 19h24

    Re:

    Quoth Matroc:
    and btw. the song length could be set...

    Cor, so it can. And so it does now... :)

    Phil

    "Cattle Prods solve most of life's little problems."
    • Matroc disse...
    • Usuário
    • Jan 30 2005, 23h55
    ive got another one ;-)

    ther should be an option to enable/disable errormessages if the server made a bad response (wich happens pretty often) because sometimes i get spammed with those messageboxes.

    oh and btw when updating the track info winamp doesnt react, would be really cool if that could be fixed...

    • disse...
    • Usuário
    • Jan 31 2005, 15h59

    Re:

    Quoth Matroc:
    ther should be an option to enable/disable errormessages if the server made a bad response


    Agreed.

    • disse...
    • Usuário
    • Jan 31 2005, 16h10
    When I stopped playing the LFM stream, it wouldn't quit with the error messages... that's bad news, as I KNEW it wasn't streaming anything, it shouldn't be trying to connect...

    A bit of the log, in case you care...

    [31.01.2005 08:13:28] LST: No playback info; not currently streaming
    [31.01.2005 08:14:02] PLG: Automatic Track Info Refresh
    [31.01.2005 08:14:02] LST: Last.fm stream is playing
    [31.01.2005 08:14:02] LST: Requesting Now Playing info
    [31.01.2005 08:14:02] NET: Connected
    [31.01.2005 08:14:03] NET: Connection closed
    [31.01.2005 08:14:03] NET: Message received
    [31.01.2005 08:14:03] LST: Parameter not found: radiomode
    [31.01.2005 08:14:03] LST: Parameter not found: artist
    [31.01.2005 08:14:03] LST: Parameter not found: track
    [31.01.2005 08:14:03] LST: Parameter not found: trackduration
    [31.01.2005 08:14:03] LST: Parameter not found: trackprogress
    [31.01.2005 08:14:03] LST: No playback info; not currently streaming
    [31.01.2005 08:14:07] PLG: Unknown time left; using default
    [31.01.2005 08:14:07] PLG: Stopping existing timer
    [31.01.2005 08:14:07] PLG: Next timer update in 35s
    [31.01.2005 08:14:07] PLG: Updating title
    [31.01.2005 08:14:07] PLG: Unknown time left; using default
    [31.01.2005 08:14:07] PLG: Stopping existing timer
    [31.01.2005 08:14:07] PLG: Next timer update in 35s
    [31.01.2005 08:14:07] PLG: Updating title
    [31.01.2005 08:14:14] LOG: LogManager stopping on shutdown.


    And that was while playing local files. I deleted the plugin for now, because that was REALLY annoying, heh. Hope you can fix that one soon!!

    • mll disse...
    • Moderador
    • Fev 2 2005, 8h46
    Hi,

    FYI, I use v0.4.5 on both Win2K & WinXP, and it does the job of opening a session. Great stuff !

    I did not really test toroughly the play / prev / next stuff, but skipping (next) doesn't seem to work for me.

    Update: the stuff also sometimes loses its synch with the song names, and reverts to last.mp3?session=xnf643klqsdblahblah

    Feature request : being able to start a session on a right-click on the Playlist (and, while I'm here the MediaLib too).

    MLL

    Check out some of my groups: TV-free | Musepackers of the world, unite ! | Photographs and photographers

    Je suis modérateur pour lastfm.fr (la partie francophone).
    I'm a moderator for lastfm.fr (french-speaking side of last.fm).
    Editado por mll em Fev 2 2005, 9h57
    • flippet disse...
    • Usuário
    • Fev 2 2005, 22h59

    Re:

    Quoth killdXm:
    And that was while playing local files. I deleted the plugin for now, because that was REALLY annoying, heh. Hope you can fix that one soon!!

    Each build is thoroughly tested software, honest guv'nor!

    'Tis fixed; it notices when a stream has stopped now, and it only ever pops up an error message if you've asked it to do something rather than if it's doing something in the background.

    Still can't get it to notice a stream has started if it was already selected in the playlist beforehand. Meh...

    Phil

    "Cattle Prods solve most of life's little problems."
    • disse...
    • Usuário
    • Fev 3 2005, 13h37
    is this a safe and secure thing to download though as you said it may not be at the start but i'm not too sure if you fixed that or not.

    • mll disse...
    • Moderador
    • Fev 3 2005, 15h45

    Re:

    Hi,

    About:
    Quoth mll:
    the stuff also sometimes loses its synch with the song names, and reverts to last.mp3?session=xnf643klqsdblahblah

    I think it occurs when i *pause* winamp for some time.

    May I also coin in somme feature requests ? :)
    I'd love to configure the way it's displayed, so that I can have only Artist - Track (the notifier is quite narrow, so sometimes I only have "Personal radio - mll - whatever long artist nam".

    Anyway, thnaks for the great work in progress :)

    MLL

    Check out some of my groups: TV-free | Musepackers of the world, unite ! | Photographs and photographers

    Je suis modérateur pour lastfm.fr (la partie francophone).
    I'm a moderator for lastfm.fr (french-speaking side of last.fm).
    • flippet disse...
    • Usuário
    • Fev 3 2005, 18h47
    Yet another version; after reading the Konfabulator widget thread I changed all the requests to GETs, and the skip, ban, love and change station commands work now. W00t!

    I changed around the order of track information too; now the artist and track is at the beginning of the string so it doesn't get lost off the side of a window or something. It's only a stopgap, but it's an improvement for now.

    http://www.flippet.org/gen_lastfm/gen_lastfm_0.5.zip

    MLL... I've never tried pausing a Last.fm stream, to be honest. It will only fiddle with the track title if a last.fm stream is playing, so if it's paused it won't touch it. Does the stream stop completely, or just pause nicely? I shall have a play later...

    is this a safe and secure thing to download though as you said it may not be at the start but i'm not too sure if you fixed that or not.
    That was the very first version, posted within minutes of me thinking "hey, it actually /works/...". It's improved since then; it hasn't destroyed my computer. (Yet.)

    Treat that bit as an overenthusiastic disclaimer... :)

    Phil

    "Cattle Prods solve most of life's little problems."
    • mll disse...
    • Moderador
    • Fev 3 2005, 19h17

    Re:

    Quoth flippet:
    Yet another version; after reading the Konfabulator widget thread I changed all the requests to GETs, and the skip, ban, love and change station commands work now. W00t!

    And also work for me, woot woot woot !

    I changed around the order of track information too; now the artist and track is at the beginning of the string so it doesn't get lost off the side of a window or something.

    Woot woot woot woot !
    MLL... I've never tried pausing a Last.fm stream, to be honest.
    Well, I'm too afraid to miss something when I'm afk (and too afraid to miss banning smth I really hate ;)
    It will only fiddle with the track title if a last.fm stream is playing, so if it's paused it won't touch it. Does the stream stop completely, or just pause nicely? I shall have a play later...
    Pause nicely. The popup web display's counter continues to go actually, but when it reaches the end of the song, the love / skip / ban buttons grays out, and it nicely waits for what you listen to end before showing a new song :)

    Keep the goot work ! :)

    Check out some of my groups: TV-free | Musepackers of the world, unite ! | Photographs and photographers

    Je suis modérateur pour lastfm.fr (la partie francophone).
    I'm a moderator for lastfm.fr (french-speaking side of last.fm).
    Editado por mll em Fev 3 2005, 19h18
    • mll disse...
    • Moderador
    • Fev 4 2005, 8h47

    Re: Re:

    mll quoting himself :):
    Quoth flippet:
    It will only fiddle with the track title if a last.fm stream is playing, so if it's paused it won't touch it. Does the stream stop completely, or just pause nicely? I shall have a play later...

    Pause nicely. The popup web display's counter continues to go actually, but when it reaches the end of the song, the love / skip / ban buttons grays out, and it nicely waits for what you listen to end before showing a new song :)

    More on this, from my recent experiences.
    1. while playing, theplugin once missed a track change (was still displaying the previous track), but it re-hokked correctly on the following song
    2. the plugin definitly loses track of the song names on a long pause. It reverts to the default display (ie, without the plugin: "last.mp3?session=kfjghslfkgsgfdhsf") and never catches the songs names again :( Note that when this occurs, the popup layer itself doesn't update either, and I have to press "[refresh track info]" for it to catch up.

    Check out some of my groups: TV-free | Musepackers of the world, unite ! | Photographs and photographers

    Je suis modérateur pour lastfm.fr (la partie francophone).
    I'm a moderator for lastfm.fr (french-speaking side of last.fm).
  • Yeah, the pop-up player's timer is independent of the media player's -- dunno if you knew that or not. :) Kinda hacky.

    -Scott

    • ning disse...
    • Usuário
    • Mar 11 2005, 11h51
    Please make it work over a proxy server! Otherwise this seems like a good plugin.. thanks very much.

    • xSpAzZx disse...
    • Usuário
    • Mar 20 2005, 10h07
    Hey, has any wokr been done on this plugin recently? It hasn't worked at all for the past week or so :/

    Michael Foster
    LCpl, USMC
  • The plugin is now giving a "Bad responce received from server error".
    I checked the log and it shows:
    [24.03.2005 20:22:10] NET: Message received
    [24.03.2005 20:22:10] LST: Parameters: 2
    [24.03.2005 20:22:10] LST: 1:



    session=[session id]
    [24.03.2005 20:22:10] LST: 2: stream_url=http://moses.last.fm/last.mp3?Session=[session id]
    [24.03.2005 20:22:10] LST: Parameter not found: session

    It looks like the webservice is adding some blank lines before the parameters which is preventing the plugin from reading them correctly.

Usuários anônimos não podem postar mensagens. É preciso fazer login ou criar uma conta para postar nos fóruns.