General Discussions

Myspace Lyrics Problem (actionscript and Mac Related) – legaianlight

LegaianLight

Member

Posts: 71
From: Colorado, United States
Registered: 04-04-2006
Hey everyone! I'm currently having a problem with myspace (well, it's been going on for a while). Whenever i try to view the lyrics in someones page, nothing happens, even if their lyrics button is black as opposed to grayed out. It's especially difficult when the band is an indie and has no site >.< . If I right click on the Lyrics button and copy paste the link to my address bar, i get an error when i go to the site that reads:

Safari can’t open “asfunction:lyrics,14959136” because Mac OS X doesn’t recognize Internet addresses starting with “asfunction:”.

I figure if i use a protocol handler/helper, this would solve the problem, but i have no idea what to use in order to get this to work! Any help would be appreciated. (keep in mind im on a mac)

------------------
O Praise Christ, O Praise Christ, He Is Holy, He Is Holy - O Praise Him

We're standing on the shores of forever - where stars are shining brighter than before. And peace is the Prince of the moment. Our hearts are so weary from the war.

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by legaianlight:
Safari can’t open “asfunction:lyrics,14959136” because Mac OS X doesn’t recognize Internet addresses starting with “asfunction:”.

That looks like a JavaScript or something similar which isn't a valid HTML link. You'll have to find a hard link, look at the page's source code, or click on the link and copy the lyrics or resulting URL in the URL bar (but that probably won't happen).

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

"Oh, bother," said the Borg. "We've assimilated Pooh."

Any fool can know, the point is to understand. -- Albert Einstein

My Programming and Hacker/Geek related Blog

LegaianLight

Member

Posts: 71
From: Colorado, United States
Registered: 04-04-2006
Thanks for the Reply, CPUFreak!

The main problem is that this is embedded in their music player, which is flash or js or something funky like that. I have no idea how to figure out the link from that. This (i think) is a problem in looking at the source code. When i click on the link, nothing happens, and when i copy the url to the url bar, that's when i get the "asfunction:lyrics,14959136" link.

So now to keep searchin!

EDIT - Well, i decided to ask my dad if he knew how or could figure it out, and wouldnt you know it, he could figure it out! lol. So it looks like the solution is to go into the page source and search for lyrics. When you find something like...
function lyrics(id){
window.open('http://music.myspace.com/index.cfm?fuseaction=bandprofile.songLyrics&friendid=81111926&MyToken=c76616be-fed5-4e38-a972-a69fc65a195e&songid='+id,'Lyrics','scrollbars=ye s,resizable,width=650,height=700');
}
...the above, then you take 'http://music.myspace.com/index.cfm?fuseaction=bandprofile.songLyrics&friendid=81111926&MyToken=c76616be-fed5-4e38-a972-a69fc65a195e&songid='+id' this part of it, ditch the '+id' at the end and the ' at the beginning, and copy paste it to your address bar. From there, you go into the music player and right click on the Lyrics button to the song you want to get the lyrics on and paste that somewhere. Then take the last piece of it (in my case, the 14959136) and tag it on where the '+id' was, giving you something like:

http://music.myspace.com/index.cfm?fuseaction=bandprofile.songLyrics&friendid=81111926&MyToken=c76616be-fed5-4e38-a972-a69fc65a195e&songid=14959136

Note that the http address will change from artist to artist.

Thanks again for your help, CPU!

------------------
O Praise Christ, O Praise Christ, He Is Holy, He Is Holy - O Praise Him

We're standing on the shores of forever - where stars are shining brighter than before. And peace is the Prince of the moment. Our hearts are so weary from the war.

[This message has been edited by legaianlight (edited October 13, 2007).]