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 « 27 28 29 30 [ 31 ] 32 33 34 35 » Last »
2 votes - 5 average   [release] Music now playing
Author: Message:
PhattyPab
New Member
*


Posts: 2
Joined: Mar 2007
RE: [release] Music now playing
OMG its working !!!! I LOVE YOU PEOPLE :D
03-21-2007 06:06 PM
Profile E-Mail PM Find Quote Report
antiaries
New Member
*


Posts: 2
Joined: Mar 2007
RE: [release] Music now playing
I just recently installed the latest Messenger Plus! and was trying to figure out how to utilize the Now Playing 1.3.0 script that it came with.

While looking at this page: http://www.msgpluslive.net/scripts/view/58-Music-Now-Playing/

It stated that one needed to click on the Messenger Plus! logo. This didn't yield what I was looking for until I clicked on the Scripts icon in the message window instead.

Anyway, what I'm here for is this: Is it possible that in a future update that one could enable foobar2000 support? I'd really appreciate it.
03-23-2007 03:25 AM
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 antiaries

Anyway, what I'm here for is this: Is it possible that in a future update that one could enable foobar2000 support? I'd really appreciate it.
install the winamp api wrapper for foobar2000 for foobar support
[Image: dt2.0v2.png]      Happy Birthday, WDZ
03-23-2007 08:06 AM
Profile PM Web Find Quote Report
antiaries
New Member
*


Posts: 2
Joined: Mar 2007
RE: [release] Music now playing
quote:
Originally posted by -dt-
install the winamp api wrapper for foobar2000 for foobar support
Thanks for the heads up. It does what it's supposed to do for the most part, but songs with unicode tags yield broken text and files named with unicode characters will not load at all.

Using Winamp, neither is an issue, so it's probably just an API code limitation based on Winamp prior to unicode support?
03-23-2007 09:31 AM
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 antiaries
quote:
Originally posted by -dt-
install the winamp api wrapper for foobar2000 for foobar support
Thanks for the heads up. It does what it's supposed to do for the most part, but songs with unicode tags yield broken text and files named with unicode characters will not load at all.

Using Winamp, neither is an issue, so it's probably just an API code limitation based on Winamp prior to unicode support?
yeah, winamp only added unicode support in 5.10 or something so i doubt the foobar winamp thing supports unicode yet : <
[Image: dt2.0v2.png]      Happy Birthday, WDZ
03-23-2007 10:17 AM
Profile PM Web Find Quote Report
qricth
New Member
*


Posts: 4
Joined: Mar 2007
RE: [release] Music now playing
plz fix it. it doesnt work with jet audio:S
03-23-2007 06:35 PM
Profile E-Mail PM Find Quote Report
Numenor
New Member
*

Avatar

Posts: 4
Joined: Mar 2007
RE: [release] Music now playing
Thank you for the *great* script! :) I'm enjoying it very much, though since the beginning I experienced some problems with the Display Picture: apart from the (rare) cases the script could retrieve the album cover from the Internet, no custom cover was displayed as DP, no matter the name I assigned to the image file.

Apart from this malfunction, and unless I've misunderstood the script functions, the script only allows *one* cover per folder. It may be unusual, I don't know, but I have, for example, a big collection of MP3s directly recorded from my old 45RPM vinyl records: none of them have an "Album" defined in the ID3, and they all reside in the same "45RPM" folder; I *really* would have had the ability to assign a per-file cover...

So, I've examined the script. Please keep in mind that this is the very first time I examine or edit a javascript, so forgive me if my solution is rough :P


EDIT: please read my next post for the modified script and explanations

This post was edited on 03-24-2007 at 12:46 PM by Numenor.
______________________________
Pedo Mellon a Minno!
03-24-2007 01:38 AM
Profile PM Find Quote Report
n0obie4life
Junior Member
**


Posts: 17
Joined: Mar 2007
RE: [release] Music now playing
Hey,

Is it possible to get your script to not send my files as...(look at filename)
[Image: capturemz0.jpg]

It's kind of irritating..especially when  everything else is corrrect -
http://img249.imageshack.us/img249/5325/capture2ws4.jpg (WLM's now playing status field)
http://img249.imageshack.us/img249/7198/capture3pl0.jpg (windows explorer)

and that WLM supports sending of filenames with Chinese Characters.

Thanks :).

This post was edited on 03-24-2007 at 09:08 AM by n0obie4life.
03-24-2007 09:07 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 n0obie4life
Hey,

Is it possible to get your script to not send my files as...(look at filename)
[Image: capturemz0.jpg]

It's kind of irritating..especially when  everything else is corrrect -
http://img249.imageshack.us/img249/5325/capture2ws4.jpg (WLM's now playing status field)
http://img249.imageshack.us/img249/7198/capture3pl0.jpg (windows explorer)

and that WLM supports sending of filenames with Chinese Characters.

Thanks :).
thats a problem with messenger or MsgPlus Live!
[Image: dt2.0v2.png]      Happy Birthday, WDZ
03-24-2007 09:13 AM
Profile PM Web Find Quote Report
Numenor
New Member
*

Avatar

Posts: 4
Joined: Mar 2007
RE: [release] Music now playing
I've changed again the "coverArt.js" script, now it works like it should; the modifications (compared to the original script), apart from some comments and debug lines, are the ones in bold:


code:
...

var MyFilename;

function album_checkInDirForCover(dir, album, filename, artist){

    //removes the extension from the currently playing file name
    var MyFilename = filename;
    var dirparts = MyFilename.split(".");
    dirparts.pop();
    var MyFilename = dirparts.join(".");


    var items = ["Album", "Cover", "Folder", album, artist]
    var exts = ["jpg", "jpeg", "gif", "png", "bmp"];

    //searches for cover with same filename as media file
    for(ext in exts){
        file = MyFilename + "." + exts[ext];
        //Debug.Trace('Looking for cover: ' + file);
        if(fso.FileExists(file)){
            Debug.Trace('Found cover: ' + file);
            return file;
        }
    }


    //continues search for cover
    for(name in items){
        for(ext in exts){
            file = dir + items[name] + "." + exts[ext];
            //Debug.Trace('Looking for cover: ' + file);
            if(fso.FileExists(file)){
                Debug.Trace('Found cover: ' + file);
                return file;
            }
        }
    }
    Debug.Trace('No cover found for file ' + filename);
    return false;
}

function getAlbum(artist, album, callback, file){
   
    var dirparts = file.split("\\");
    dirparts.pop();
    var dir = dirparts.join("\\") + "\\";
    var item;
    if(fso.FileExists(coverArtDirectory + stripfilename(album) + ".jpg")){
        callback(coverArtDirectory + stripfilename(album) + ".jpg");
   
    }else if(item = album_checkInDirForCover(dir, album, file, artist)){
        Debug.Trace('from file');
        callback(item);
    }else{
        CoverArtTemp = callback;
        CoverArtAlbum = album;

        new Ajax(sprintf(cover_url, escape(artist + " " + album)), {"onComplete" : parseAlbumResults.bind(this)});
    }
}




As you can notice, the differences are:
  • When the GetAlbum function calls the Album_checkInDirForCover, it passes not only the dir parameter, but also album, file and artist (as received from the Main.js).
  • In the album_checkInDirForCover, in the var items, corrected the single apices  enclosing the elements of the list into quotation marks (oddly enough, the element Folder already was enclosed in quotation marks, while Album and Cover had single apices. I don't know if in javascript the difference is relevant, but anyway the "Folder.jpg" worked, while the "Album.jpg" didn't.
  • Again, converted the single apices to quotation marks in the var exts.
  • Appended the additional parameters passed by the GetAlbum function (Album and Artist) to the list of elements for the var items.
  • Added a For...Next loop that runs before the standard search for cover.

As a result, the script, when it can't find a cover on the Internet, nor in the cache\art folder, looks into the folder where resides the currently playing MP3 and searches for an image in this order:
[list=1][*]Variable name: (MP3 filename).jpg  (or .jpeg, .gif, .png, .bmp)
[*]Exact name: "Album.jpg"
[*]Exact name: "Cover.jpg"
[*]Exact name: "Folder.jpg"
[*]Variable name: (Album name from ID3).jpg
[*]Variable name: (Artist name from ID3).jpg
[/list]


In my system, it works like a charm: I can assign a cover to each single MP3 (by creating a .jpg with the same name of the .mp3), or assign a cover to each album (while having multiple albums in the same folder), or even creating a "default" jpg with the artist image, and the script will select it if anything else fails.


I hope that my explanation makes sense; I'm sorry if my terminology is not accurate, but - as said - I'm not a programmer and I've never dealt with javascripts before.

For anyone interested, I'm attaching the modified "coverArt.js" (I've removed the one in my previous post);
@ DT: feel free to do with the code whatever you want :)
@anyone else: use it at your own risk.


.zip File Attachment: coverArt.zip (2.12 KB)
This file has been downloaded 211 time(s).

This post was edited on 03-24-2007 at 12:46 PM by Numenor.
______________________________
Pedo Mellon a Minno!
03-24-2007 12:45 PM
Profile PM Find Quote Report
Pages: (70): « First « 27 28 29 30 [ 31 ] 32 33 34 35 » 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