[Request] XBMC now playing - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [Request] XBMC now playing (/showthread.php?tid=71512) [Request] XBMC now playing by Horscht on 02-08-2007 at 05:47 PM
Hi code: shouldn't it be quite simple to query this url every thirty seconds and display song information in WLM? If so, could anyone be so kind and write an MP! script for that purpose? Again, I am sorry to ask this, but I am clueless on how one would be able to do that, so I appologise if one is not allowed to make request. Thanks in advance Horscht RE: [Request] XBMC now playing by Stigmata on 02-08-2007 at 07:29 PM
Ok here is a tester.. it will get the artist and track and pop it up in a alert box (Want to make sure it works). RE: [Request] XBMC now playing by Horscht on 02-08-2007 at 07:56 PM
Ok, tested this script. a popup allert poped up, but it told me code: I have no clue where it got that Iron Maiden info from. EDIT: I tried loading it again, this time it got the right information (Atreyu Right side of the bed) . what value is the timer set to? It should be a lot less, like refreshing the song information every 30 seconds. not too often though (not less than every 10 seconds). Also, it cuts of the last letter of the Artist and the Song title. Small bug I supose. And it would be great if one could set the ip via a small dialog. And maybe some configurable information layout. So you could decide wether it should display "Artist - Album - Title" or "Title - Artist" etc. EDIT2: Even after playing 5 Songs on xbmc the script still tells me "Atrey right side of the be" whenever i deactive-activate it... RE: [Request] XBMC now playing by Silentdragon on 02-08-2007 at 09:58 PM
I had a script that did this: RE: [Request] XBMC now playing by Volv on 02-09-2007 at 01:51 AM
Also Stigmata, I'm not sure if you have an XBOX with XBMC or are just scripting this specifically for Horscht, but it is worth noting that in order to do this the user must first enable the Web Server (which is by default disabled) on their XBMC dashboard by going to Settings > Network > Servers then checking the 'Enable Web Server' checkbox and having the following settings; code: If a video is playing the following was returned; code: If an image is being viewed (even whilst music is playing); code: If a DVD Video is being played; code:(I think this would just use the same code as other videos and i imagine VCDs etc. would yield the same) No data is retrieved whilst playing games (and I'm assuming with other applications as well) since the dashboard (and hence its webserver) is no longer running whilst this is happening. Anyway, the key to this would be determining the 'Type' field first and then determining which fields to get (eg. videos dont have Artist fields whereas songs do). You would also have to 'remember' which songs are playing because if the user is browsing images whilst listening to music the music details will not be displayed on the page (this is probably the biggest problem). PS: Sorry if you already have an xbox and know all this, meaning I've just wasted the last 10 minutes EDIT: Did code tags always have emoticons enabled? =/ quote:This sounds a lot like a caching issue but I have not tried the script yet so I cannot confirm. EDIT2: Have now tried the script and can confirm that this is an issue and that it is indeed a caching issue, after deleting Temporary Internet Files from Internet Explorer the song is properly updated but then remains the same again. A cheap work around for this is editing the URL every time it is retrieved by adding a random number at the end eg; code: quote:This is because there is only a Line Feed character between lines, there is no Carriage Return whereas the script acts as though there is both control characters present, this should be relatively easily fixed. |