What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [release] Music now playing

Pages: (70): « First « 3 4 5 6 [ 7 ] 8 9 10 11 » Last »
2 votes - 5 average   [release] Music now playing
Author: Message:
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
RE: RE: [release] Music now playing
quote:
Originally posted by Kev_
hey when i have a song that has a - in it, it cuts off

like a liveset: "dj blabla - live at party 01-01-2006"
it gives : "dj blabla - live at party 01"

:(


Ok, after fixing the (!WAT) problem, I thought I'd fix up a couple more things, including this problem.

To fix this, edit the script. Select WinampClass.js as the current script file. Then scroll down, you should see:
var Winamp = function(){ somewhere in there. Keep scrolling down until you find:
"CurrentTrack" : function(){

A couple of lines below that, you should find:
code:
        t = title.split('-');
        return {'Title': t[1], 'Artist': t[0]};

Just replace the first line with this:
code:
t = title.split(' - ');

That will also solve the problem with {artist} always having a space at the end and {title} always having a space at the beginning. :)
06-29-2006 08:11 PM
Profile E-Mail PM Find Quote Report
Sypher
Senior Member
****

Avatar

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Apr 2003
RE: [release] Music now playing
Nice, (!WAT) is working all right now :)
Messenger Plus Beta Tester
Plus! Live Faq Maintainer
06-29-2006 08:26 PM
Profile PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
O.P. RE: [release] Music now playing
quote:
Originally posted by noroom
ust replace the first line with this:

    code: : highlight as ( jscript , xml , php , vb , c# , sql )t = title.split(' - ');



That will also solve the problem with {artist} always having a space at the end and {title} always having a space at the beginning. (Smilie)

intresting but that doesnt really fix it , anyway my new method (if i can get it to work >< ) will fix this
[Image: dt2.0v2.png]      Happy Birthday, WDZ
06-30-2006 10:53 AM
Profile PM Web Find Quote Report
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
RE: [release] Music now playing
It does fix it for me, but I modified the script greatly, so maybe I forgot something.

What exactly is the problem?
06-30-2006 11:21 AM
Profile E-Mail PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
O.P. RE: [release] Music now playing
quote:
Originally posted by noroom
It does fix it for me, but I modified the script greatly, so maybe I forgot something.

What exactly is the problem?

what happens if a song is named like so

Artist: rolling - cats
Ttitle: moo cows

(Ive seen a few songs named like so)
[Image: dt2.0v2.png]      Happy Birthday, WDZ
06-30-2006 11:27 AM
Profile PM Web Find Quote Report
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
RE: [release] Music now playing
That's why none of my songs have " - " in the artist name. Artists that have a hypen in the name, don't have spaces around it.

e.g.: The All-American Rejects, American Hi-Fi, blink-182. But you're right, now that I think about it, I have 2 songs that have " - " in the song title.

So I came up with this:

code:
        var title = songName.readString(0,false);
        artist = title.substr(0, title.indexOf(" - "));
        title = title.substr(artist.length - (-3));
        return {'Title': title, 'Artist': artist};

That works on songs with a " - " in the title, but not in the artist.
06-30-2006 01:40 PM
Profile E-Mail PM Find Quote Report
Mr. Bougo
Junior Member
**


Posts: 51
34 / Male / –
Joined: Jun 2006
RE: [release] Music now playing
I got an alert for the new version of musicnowplaying, what's new in it?
07-01-2006 06:13 PM
Profile PM Find Quote Report
Sypher
Senior Member
****

Avatar

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Apr 2003
RE: [release] Music now playing
Some minor fixes, like (!WAT) can now work with text in front of it, or next to it :)

By the way, today i was listening to a stream (old version though) and it showed as Connecting <url> - Undefined... While Winamp reported the correct data.
Messenger Plus Beta Tester
Plus! Live Faq Maintainer
07-01-2006 07:31 PM
Profile PM Find Quote Report
Mr. Bougo
Junior Member
**


Posts: 51
34 / Male / –
Joined: Jun 2006
RE: [release] Music now playing
Muh... How can I increase the title length limit? I have tracks with a huge name like
quote:
Ben Bording pres. Benya vs. Inez - Prometheus (Original Mix) (a.k.a. Yamin - Almathea) vs. Stronger (Accapella)
:p


(I use Winamp)

This post was edited on 07-02-2006 at 12:51 PM by Mr. Bougo.
07-02-2006 12:40 PM
Profile PM Find Quote Report
DarcSeraphim
New Member
*


Posts: 3
Joined: Jul 2006
RE: [release] Music now playing
Firstly, thanks a lot for this!

I missed (!WAT), and whenever I used (!MYMEDIA), it was doing "{1} - {0} - Artist - Title". No idea what that was all about.

Few things though, although I've found the fix for songs with '-' in the title a few posts up, it might be worth putting that fix in the file linked to at the start of the thread, so everyone doesn't have to do it themselves?

Also "/lyrics" doesn't seem to do anything. Am I missing something? Does it only read lyrics from ID3 tags, or does it fetch them from a lyrics site?

Finally, {album} doesn't display anything. I'm using Winamp (latest) and all my files have id3 v2.3 tags, so, any ideas?
07-03-2006 06:35 AM
Profile E-Mail PM Find Quote Report
Pages: (70): « First « 3 4 5 6 [ 7 ] 8 9 10 11 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On