INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 4 5 6   Go Down

Author Topic: NEW PLUGIN: Trackinfo Template - LastFM [v1.6 - 20 July 2008]  (Read 60961 times)

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
NEW PLUGIN: Trackinfo Template - LastFM [v1.6 - 20 July 2008]
« on: October 17, 2007, 12:46:37 pm »

PM Flow v0.2 - 12-08-2008
Bug fix
Download

v1.6 - 20-07-2008:
Changelog: minor tweaks, updated lastfm compatibility, automatically display lastfm cover when empty
Download


PM Flow v0.1 - 07-02-2008:
First release of this full-screen mod.
Known bugs:
 - album name is centered under Firefox but not IE
 - last.fm data grabber works under IE but not Firefox  ::)
 - covers are too big in windowed mode
Anyone knows how to build a basic VIS with a blue "onbeat" oscilloscope?
Download

v1.5 - 07-02-2008:
Small update. Better web links display.
Download


New layout preview.- 03-02-2008:
give me your opinion (look at the end of this thread)




v1.3 - 06-01-2008:
added clean "artist picture"
added "album info" + "album cover" from last.fm
Download
Try Deivit's great template PM_Lyrics_15


v1.2 - 04-12-2007:
quick & dirty update, just to get some feedback:
added lytebox to open links within MC
added "artist image" auto-download script
added some web links (thanks to Deivit)

more cover links to come
Download


v1.1 - 07-11-2007:
small update:
added bio from last fm
fixed minor bugs
fine tuning in css
Download


v1.0 - 30-10-2007:
fixed a bug with accentued characters
fixed a bug that appears when number of results was under the given limit
image sizes can now be set with the css
links open in a popup window
hover effect on album art

TODO:
sometimes data are not correctly refreshed (timeout problem ) -> need to fix that
parse audioscrobbler page to get bio info

Everything you need to know and download is here.


v0.5 28-10-2007:


I need suggestions regarding how data is displayed and organized. If you have any html knowledge you can customize it easily.


v0.0 - 17-10-2007
I've started a Trackinfo template that retrieves data from audioscrobbler and shows information related to the current track. Since it's an html page I had to write everything in javascript. I tried to provide something versatile and customisable. For the moment the user need to click to display info but I've in mind an "onload" version.



You'll want to enable scrollbar: right-click on the track info and select "Enable Scroll Bar"...

Everything is still in a very early beta stage (including main ideas, javascript and css).
Functions are detailed in pm.js please take a look and send me comments.
If you get an error check:
Code: [Select]
Tools > Internet Options > Security > Custom Level > Micsellaneous >Access Data Sources across Domains > Prompt
PS: Extract the folder in "C:\Program Files\J River\Media Center 12\Visualizations\Track Info"
PS2: Thanks to Hieu Nguyen for his template.
PS3: I would like to have audioscrobbler data interact with MC, for example when showing similar artist, display if the user has those artists in his library. Or query for toptracks to build a "mainstream" playlist. I think that the C##/VB PLugin from Mr Chriz will allow me coding this. But if you have any idea or time ... :p
PS4: I think I'll add automatic cover download in the trackinfo template, I can manage that in javascript. I was thinking about a coverflow display using that too.
Logged

schmoose

  • Junior Woodchuck
  • **
  • Posts: 52
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #1 on: October 22, 2007, 04:49:05 am »

i'm surprised noone has replied yet.

this is one bad *ss plugin. i've been waiting for something like this for a while. i just installed and it worked straight away. haven't had a chance to play with it much yet, but i'm sure i'll have some things for the wishlist.

couple things off the bat:

add a scroll bar or at least if it recognized the scrolling of a mouse wheel. for example, when i clicked 'similar artist', i got 100+ hits, but could only see about 20. no way to scroll down to see the rest. layers that could be scrolled would be pretty cool.

pretty sweet to be able to click on one of those artists though, and be taken to the artist's last.fm page within MC12. but again, there's no way to scroll within the embedded last.fm webpage.

finally, when you click to go to that last.fm webpage, if you click back, you're taken to the MC12 start page, rather than back to 'PM track info'. you can of course, right click and select the 'PM track info' to get back, but this is not as intuitive.

anyway, great work. the spirit of this plugin is really sweet, and i can't wait to see it develop more.
Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #2 on: October 22, 2007, 05:14:02 am »

wouhou it looks like someone posted a comment!
Concerning the scrolling problem, I've looked into trackinfo plugin source and seen that the scrollbar is volontary disabled.
I'd like to build a trackinfo plugin with personnal customization (fix the scroll pbm but also add interactivity between last.fm results and your database) but the source available on the wiki doesn't compile on my computer. Eventually I'll try to post in this board to get some help, but I'm not sure someone will take time to answer me.

Anyway, thanks for trying my template. Feel free to post comments and ideas. And if you have any css skills ... :p
Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #3 on: October 22, 2007, 06:19:20 am »

I just found this plug-in and it's very well done.  I'd agree that it needs the scrollbar automatically enabled, but once it's turned on, everything works very well.  I'd like a way to turn the spectrum analyzer off, but it's hardly distracting enough to be a deal-breaker.  The data accessing abilities are very useful.  Keep up the great work, you've definitely got a user here.
Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #4 on: October 22, 2007, 07:22:31 am »

I'd agree that it needs the scrollbar automatically enabled, but once it's turned on, everything works very well.
You mean you can enable it? How do you do?
Logged

mlefebvre

  • Galactic Citizen
  • ****
  • Posts: 452
  • nothing more to say...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #5 on: October 22, 2007, 08:04:50 am »

I just tried it! Work nicely! Good job!

I also would like to know how to enable the scroll bar... ;-)

...Michel.
Logged

mlefebvre

  • Galactic Citizen
  • ****
  • Posts: 452
  • nothing more to say...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #6 on: October 22, 2007, 08:06:33 am »


I also would like to know how to enable the scroll bar... ;-)

...Michel.

Just figured it out  ;D

Just right-click on the track info and select "Enable Scroll Bar"...  ;D

....Michel.
Logged

Streaker

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #7 on: October 22, 2007, 12:45:00 pm »

This is a pretty sweet interface. Nice work!  One question: How do get back to the template page after I click a link that takes me to the last.fm website? The JR back button switches to a previous MC page, not the embedded page... The only way I could find is to select a different track template then switch back to the "PM Track Info" template
Logged

schmoose

  • Junior Woodchuck
  • **
  • Posts: 52
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #8 on: October 26, 2007, 12:23:03 am »

wouhou it looks like someone posted a comment!
Concerning the scrolling problem, I've looked into trackinfo plugin source and seen that the scrollbar is volontary disabled.
I'd like to build a trackinfo plugin with personnal customization (fix the scroll pbm but also add interactivity between last.fm results and your database) but the source available on the wiki doesn't compile on my computer. Eventually I'll try to post in this board to get some help, but I'm not sure someone will take time to answer me.

Anyway, thanks for trying my template. Feel free to post comments and ideas. And if you have any css skills ... :p

oh, ok....thx for pointing the trackinfo scrollbar functionality out.

not much in the way of css skills over here. the following works fine for my monitor, but maybe not for everyone. if 'playing now' is not wide enough, the layer scrollbar will overlap the right selection menu.



Quote
/* LAST.FM
-------------------------------------------------------------------------*/

#results_nb{
   position: relative;
   left: 245px;
   width: 450px;

   text-align: justify;
   font-size: 100%;
   margin-bottom: 15px;
   color: #F2F2F4;
   line-height: 1;
}

#lastfm{
   position: relative;
   left: 245px;
   width: 450px;
   height: 400px;
   overflow: auto;

   text-align: justify;
   font-size: 100%;
   margin-bottom: 15px;
   padding-right: 10px;
   color: #F2F2F4;
   line-height: 1;
}
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14463
  • I won! I won!
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #9 on: October 26, 2007, 01:49:35 am »

NooB Q - I've copied the files, and can select the template in Track Info but I only get a blank white screen.....
Logged
JRiver CEO Elect

winniew

  • World Citizen
  • ***
  • Posts: 102
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #10 on: October 28, 2007, 03:12:59 am »

I would like to test the plugin but the link to the download gave me the following error:

Erreur 403 - Refus de traitement de la requête

neFAST, could you please update the files? Thanks!
Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #11 on: October 28, 2007, 06:11:06 am »

I would like to test the plugin but the link to the download gave me the following error:

Erreur 403 - Refus de traitement de la requête

neFAST, could you please update the files? Thanks!

Yes my website is down for a few hours. And I purchased MC today and lost evrything during reinstall. So we'll both have to wait for my server to come back !
Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #12 on: October 28, 2007, 04:36:11 pm »

Template updated!
Logged

Magic_Randy

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2367
  • I used to be indecisive, but now I'm not so sure..
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #13 on: October 28, 2007, 05:48:40 pm »

I downloaded PM Track Info. Looks very nice.  I'll play around with it, but I'm not sure how to navigate using it.  As an example, if I click on something and it takes me to last.fm, how do I get back to where I was?  The back control does not seem to do it. It does go back when a new track is played.
Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #14 on: October 29, 2007, 06:03:16 am »

Looking very nice!  I like the new configuration.
Logged

AoXoMoXoA

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1551
  • I am a kangaroo . . . . no, really!
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #15 on: October 29, 2007, 07:47:59 am »

WOW, awesome template, very nice work!

Already been asked but I did not see the answer:
Once you click and get taken to the LastFM website, how to return to the template?
Logged
. . . the game is rigged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #16 on: October 29, 2007, 08:39:59 am »

You can't. I need to find a solution.
Logged

AoXoMoXoA

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1551
  • I am a kangaroo . . . . no, really!
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #17 on: October 29, 2007, 08:59:08 am »

You can't. I need to find a solution.
OK thanks, I can wait
Logged
. . . the game is rigged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #18 on: October 29, 2007, 01:55:23 pm »

Very nice one!
Thanks for sharing it.  :)
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #19 on: October 29, 2007, 03:32:35 pm »

You can't. I need to find a solution.

Maybe you could set it so that the Lastfm pages open in a separate browser?

I've also found that, if the artist has less than 10 albums, a message "6 results found. 10 displayed" is shown instead of displaying the (6) available albums.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #20 on: October 29, 2007, 04:06:29 pm »

neFAST,

I've modified a little your template, to show the lyrics (with scroll), a bigger cover art and some further information of the file. It's a 1366x768 full-display version for my personal use, though, and would not work at other resolutions.

This is how it looks. The "Now Playing (...)" of the top is a "Playing Now plug-in" companion that allows to rate the song (the green "play" button also acts ad toggle pause/play).

Thanks for the template.


Now, it would be great to be able to "interact" with the information of our own library. For instance, the 10 top albums shown on the left hand side could have a Media Center Logo if they were available in the library. Right clicking on the link could open the view scheme showing the album. Also, the top songs, if present in the library, they could be shown in a different colour or with the MC Logo. Right clicking on them could give you the option to add the song to Playing Now, etc.

I would glady give 100$ to the charity of your choice if somebody could get that to work :)
Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #21 on: October 29, 2007, 05:04:34 pm »

Now, it would be great to be able to "interact" with the information of our own library. For instance, the 10 top albums shown on the left hand side could have a Media Center Logo if they were available in the library. Right clicking on the link could open the view scheme showing the album. Also, the top songs, if present in the library, they could be shown in a different colour or with the MC Logo. Right clicking on them could give you the option to add the song to Playing Now, etc.
I have the exact same thing in my mind. It means changing our template into a full plugin. I think I should start with the trak info sources and extend its capabilities. (But the thing is that I can't compile the sources available on the wiki)
I would glady give 100$ to the charity of your choice if somebody could get that to work :)
I'd prefer you to give me a hand :)
Logged

robydago

  • Citizen of the Universe
  • *****
  • Posts: 518
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #22 on: October 29, 2007, 06:10:45 pm »

I've modified a little your template, to show the lyrics (with scroll),

can it auto-scroll lyrics (for lyrics in .lrc or similar formats)?
if not, that would be a great feature.

thanks
Logged

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2222
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #23 on: October 29, 2007, 10:58:16 pm »

neFAST,

I've modified a little your template, to show the lyrics (with scroll), a bigger cover art and some further information of the file. It's a 1366x768 full-display version for my personal use, though, and would not work at other resolutions.

This is how it looks. The "Now Playing (...)" of the top is a "Playing Now plug-in" companion that allows to rate the song (the green "play" button also acts ad toggle pause/play).

Thanks for the template.


Now, it would be great to be able to "interact" with the information of our own library. For instance, the 10 top albums shown on the left hand side could have a Media Center Logo if they were available in the library. Right clicking on the link could open the view scheme showing the album. Also, the top songs, if present in the library, they could be shown in a different colour or with the MC Logo. Right clicking on them could give you the option to add the song to Playing Now, etc.

I would glady give 100$ to the charity of your choice if somebody could get that to work :)

That's my resolution, could you post it?

Thanks
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #24 on: October 30, 2007, 01:46:57 am »

I'd prefer you to give me a hand :)

I wish I could!... unfortunately I'm no programmer at all  ::) but count on me for testing.

Have you navigated through the SDK?
http://wiki.jrmediacenter.com/index.php/DevZone#Interface_plug-in_SDK

It seems that you can do anything with the database.

Cheers.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #25 on: October 30, 2007, 01:48:42 am »

can it auto-scroll lyrics (for lyrics in .lrc or similar formats)?
if not, that would be a great feature.

thanks


No, sorry it can't... it's a manual scroll  :)
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #26 on: October 30, 2007, 01:49:55 am »

That's my resolution, could you post it?

Thanks

Sure, no problem. I'll do that this evening when I get home.
Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #27 on: October 30, 2007, 11:02:39 am »

I forgot to say that your template is great! how do you manage the lyrics of your mp3? alyrics?
Do you have suggestions concerning the thumbnails in top albums/similar artist. Where could we put them in big without eating all the available space ...

May I add a link to your template variaton in the first post?
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #28 on: October 30, 2007, 12:45:42 pm »

OK, here's a link to download the "PM Lyrics" version of neFAST PM Track-Info Template.

Click here to download the PM Lyrics version


neFAST, of course you can add the version to the first post if you wish to... it's your template!

I fill the lyrics of my songs using Mr. Chriz's EvilLyrics Plug-In, which is a great plug-in. However, it works only with the current playing song and you cannot do a batch. I'm currently using an old version of EvilLyrics since I understand that the last version caused some problems. KingSparta also had a nice plug-In (Data Master) to search for lyrics (and other tags). This one allows to batch the process. I'm not sure if DataMaster is still alive, though.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #29 on: October 30, 2007, 01:41:36 pm »

Do you have suggestions concerning the thumbnails in top albums/similar artist. Where could we put them in big without eating all the available space ...

What is the parameter that controls that thumbnails size? I may play a little bit with it and see if I come up with something interesting.

I have a couple of questions:

1.- Is there any way that you could get the bio of the artist same as you do with the other information, such as Top Albums, Similar Artists, etc?

2.- Maybe the dumb question of the week, but... Is there any way to see the audioscrobbler page of the artist? We currently can do it for the similar artists, top albums, etc. but I don't see a way to do it with the current artist.

3.- Have you considered the possibility to force the opening of the audioscrobler pages in a separate browser window? This way we could always have the PM trackinfo visible while navigating the pages and this would also avoid the cancelling of the page with the new artist at song changes while you may still be reading or browsing the previous artist pages.

Good job, neFAST  :)

Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #30 on: October 30, 2007, 01:49:17 pm »

What is the parameter that controls that thumbnails size? I may play a little bit with it and see if I come up with something interesting.
You have to look at the end of pm.js, but I should remove this fixed size and control it via css.
I have a couple of questions:

1.- Is there any way that you could get the bio of the artist same as you do with the other information, such as Top Albums, Similar Artists, etc?
Nope, they do not provide this. I miss the bio too. But we can achive this by opening the audioscrobbler page and parse it ot find the bio.
2.- Maybe the dumb question of the week, but... Is there any way to see the audioscrobbler page of the artist? We currently can do it for the similar artists, top albums, etc. but I don't see a way to do it with the current artist.
Yes, I'll add this ASAP.
3.- Have you considered the possibility to force the opening of the audioscrobler pages in a separate browser window? This way we could always have the PM trackinfo visible while navigating the pages and this would also avoid the cancelling of the page with the new artist at song changes while you may still be reading or browsing the previous artist pages.
I didn't tried but I agree with you: this is the best way to open pages.
Good job, neFAST  :)
Thanks again, I hope I'll get answers to my dev post (library interaction ... I can't wait to add that)

Logged

Magic_Randy

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2367
  • I used to be indecisive, but now I'm not so sure..
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #31 on: October 30, 2007, 02:53:17 pm »

I'm not sure if DataMaster is still alive, though.

It is. I used it this past weekend.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #32 on: October 30, 2007, 03:06:34 pm »

I did a slight modification in PM Lyrics Version:

1.- Corrected a typo in "Similar Artists"
2.- Now it shows all the albums, similar artists, top songs and similar songs instead of the top 10. The display shows the first 10-12 for each cathegory but you can scroll down to see the rest of them. This also solves the problem with the artists that had less than 10 items to show (as reported yesterday).

This is how it looks.



Logged

winniew

  • World Citizen
  • ***
  • Posts: 102
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #33 on: October 31, 2007, 12:01:01 am »

Deivit,
Thanks for sharing this.
Your screenshot remembered me of your "Playing Now Skin companion" in the Track Info - thread of august:

http://yabb.jriver.com/interact/index.php?topic=40228.msg286402#msg286402

Could you please re-upload the PN Skin Companion?

Thanks

WinnieW
Logged

Magic_Randy

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2367
  • I used to be indecisive, but now I'm not so sure..
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #34 on: October 31, 2007, 01:21:20 am »

EDIT Octobre 30, 2007:
fixed a bug with accentued characters
fixed a bug that appears when number of results was under the given limit
image sizes can now be set with the css
links open in a popup window
hover effect on album art
I get an error with the new version.

A Runtime Error has occured.
Do you wish to Debug?

Line: 116
Error: Object doesn't support this property or method.
Logged

neFAST

  • Galactic Citizen
  • ****
  • Posts: 372
  • \o/
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #35 on: October 31, 2007, 02:06:19 am »

works fine here ?
You tried to clean everything up and re-extract the archive?
Does it crashed when dealing with a particular artist/album name?
Logged

Magic_Randy

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2367
  • I used to be indecisive, but now I'm not so sure..
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #36 on: October 31, 2007, 09:15:02 am »

works fine here ?
You tried to clean everything up and re-extract the archive?
Does it crashed when dealing with a particular artist/album name?

I tried it with multiple artists and albums.  I get the same results.  The old version works fine. Deivit's versions also work fine.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #37 on: October 31, 2007, 12:28:50 pm »

Deivit,
Thanks for sharing this.
Your screenshot remembered me of your "Playing Now Skin companion" in the Track Info - thread of august:

http://yabb.jriver.com/interact/index.php?topic=40228.msg286402#msg286402

Could you please re-upload the PN Skin Companion?

Thanks

WinnieW


Sure  :)

Click here to download the PN Skin Companion for PM Track Info Template
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #38 on: October 31, 2007, 12:48:36 pm »

I get an error with the new version.

A Runtime Error has occured.
Do you wish to Debug?

Line: 116
Error: Object doesn't support this property or method.

Just installed the new version. Renamed the folder as "PM New".
Works apparently well here, without the Runtime Error.

Will investigate a little bit further. Found so far:

- Similar Artists does not seem to load.
- Hovering over the cover art doesn't seem to show any special effect. What should I expect?

Thank you.

Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #39 on: October 31, 2007, 01:12:50 pm »

Will investigate a little bit further. Found so far:

- Similar Artists does not seem to load.
- Hovering over the cover art doesn't seem to show any special effect. What should I expect?

Thank you.

I haven't had the runtime error either, but I'm using a version that I've cannibalized from both Deivit's and NeFast's code.  With the new NeFast version, I did have the "similar artists" problem but it was repaired somewhere along the line when I extracted the old "similar artist" code from an earlier version of the JSS.

I'm not sure if the cover art is supposed to do anything, but the art next to similar artists and similar albums all get bigger when I hover over them.  If the cover art did something, I probably broke that with my uneducated tweaks to the code.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #40 on: October 31, 2007, 01:44:17 pm »

I'm not sure if the cover art is supposed to do anything, but the art next to similar artists and similar albums all get bigger when I hover over them. 

Ah! That's it! The hover effect is on the thumbnails next to top albums, etc. and not on the bigger cover art. That works  :)
Will see if I can get the "similar artists" to work too.
Thanks for the tip.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #41 on: October 31, 2007, 01:56:13 pm »

Found the solution to the problem of "Similar Artists". There is a small mistake in the code of the new JSS

The Line:
  var list = getValue("similarartists", attributes);

has to be:
  var list = getValue(xmlDoc, "similarartists", attributes);

The xmlDoc part was missing.

Don't get me wrong... this is the first time I open a JSS! Found the error by chance just looking at the other var list lines... all of them had the xmlDoc thing but this one.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #42 on: October 31, 2007, 03:22:40 pm »

I'm having some trouble updating the "PM Lyrics" to the new version. I need to compare side by side the JSS, the CSS and the Index file to find out what changed. Among other things, I seem to have lost the ability to show all the albums, similar artists, etc. instead of the top 10.

Anyway, if there's still interest I'm gonna try to get it as soon as possible.

Thank you.



Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #43 on: November 01, 2007, 09:06:00 am »

Not sure if either of you want to add this to yours, but I've found it beneficial to include the number of listens, in parenthesis, after each of the top tracks.  It gives some context to how popular that artist's songs are, in total and in a relative sense.

Looking forward to everybody's new builds.  Excellent work all around.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #44 on: November 01, 2007, 10:42:20 am »

OK, I finally got it to work and I've updated the "PM Lyrics" with the new version of 30-10.

Click here to download PM Lyrics 2
Click here to download the PN Skin Companion for PM Track Info Template

New features, as per neFAST main version of 30-10. :

- Mouse over effect on cover art thumbnails.
- Links open in a separate browser page.
- Fixed a bug in the main version JS that prevented to load the "similar artists" information.
- Minor cosmetic changes.

Thanks neFAST for a very nice template.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #45 on: November 01, 2007, 11:32:03 am »

Not sure if either of you want to add this to yours, but I've found it beneficial to include the number of listens, in parenthesis, after each of the top tracks.  It gives some context to how popular that artist's songs are, in total and in a relative sense.

Looking forward to everybody's new builds.  Excellent work all around.


Can you share the code for that, c1c9k72? I'd like to give it a try  :)

Other thinks I'd like to have:

1.- Bio of the artist. I would probably put it in the left hand side when "Top Albums" is now, reducing in a couple of lines (to 8-10) the visible part of both "Top Albums" and "Top Tracks" which would go immediately below it.
2.- Link access to the artist's page.
3.- Would be great to be able to play any of the "Top Tracks" directly from the template, instead of having to open the webpage first. Maybe by adding an icon on the left of each track that pointed to the song itself. I've checked the code for the songs in last.fm but I don't know how to handle that. Apparently there is a code number for each track... could that be parsed? No idea at all.

Thank you
Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #46 on: November 01, 2007, 11:40:55 am »

The modified line is:
EDIT: NOT PRINTABLE ON THE BOARD.  Or at least, I don't know how to do it without a few pieces being turned into formatting.
Just remove the asterisks, and I think this will work.

tmp = tmp + "<li><a target='popup' href='" + list[*i].url + "'>" + list[*i].name + " (" + list[*i].reach + ") [/url]</li>";

There is another line very similar beneath it, but I can't figure out how to make it do anything.

I'm afraid I can't help with the other stuff.  I can only modify the stuff already there.  Not sure how to make it do new things.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #47 on: November 01, 2007, 11:46:34 am »

I'm afraid I can't help with the other stuff.  I can only modify the stuff already there.  Not sure how to make it do new things.

I'm exactly in the same case as you  :) No idea how to program at all, just trial and error.
Thanks for sharing the line, c1c9k72.
Logged

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #48 on: November 01, 2007, 11:55:45 am »

The modified line is:
tmp = tmp + "<li><a target='popup' href='" + list.url + "'>" + list.name + " (" + list.reach + ") [/url]</li>";

There is another line very similar beneath it, but I can't figure out how to make it do anything.

Deleting the // in that second line (to make it active) and writting // before the other one (to make it inactive) makes the trick too. It seems that our friend neFAST did already think in giving that option when he wrote the script.
Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re: NEW PLUGIN: Trackinfo Template - Audioscrobbler web services
« Reply #49 on: November 01, 2007, 11:57:33 am »

Deleting the // in that second line (to make it active) and writting // before the other one (to make it inactive) makes the trick too. It seems that our friend neFAST did already think in giving that option when he wrote the script.

So that's what those lines are for!  Alright, another bit of javascript knowledge learned.
Logged
Pages: [1] 2 3 4 5 6   Go Up