INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Help with Lyric Editor Plugin sources please  (Read 2438 times)

zxsix

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1753
Help with Lyric Editor Plugin sources please
« on: October 14, 2008, 12:52:17 pm »

I have one source that's correctly configured and works properly.
I'm trying to add a couple of others as alternatives.
Having trouble though...

One site I'm trying to get working is  lyricwiki.
Here's a specific example song that I know is there on the site.
Artist = Cold
Song Name = Send In The Clowns
It can be seen here at this URL: http://lyricwiki.org/Cold:Send_In_The_Clowns
Here's the URL setting I have in the plugin:  http://lyricwiki.org/[Artist]:[Name]
When I find using the plugin, it's opening the web browser with this URL:  http://lyricwiki.org/Cold:send%2Bin%2Bthe%2Bclowns
This fails to find the file.
It appears to be issues with how spaces are handled, but I don't see any way to control this?

I have similar issue with another site, which wants a + sign where all spaces go.  I don't see a way in the plugin to specify how spaces should be handled.

Any advice?
Or better yet, post any sources that you have setup correctly and I'll try those.

Logged

Messiahs

  • Galactic Citizen
  • ****
  • Posts: 432
Re: Help with Lyric Editor Plugin sources please
« Reply #1 on: October 14, 2008, 01:07:10 pm »

I think you have to replace the spaces with '_'.
in vb.net you can do this with "Replace(' ','_')".

At his time you replace the spaces with '+'

here is a table about unicode:
http://www.homepage-total.de/html/unicode-tabelle.php

M.

zxsix

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1753
Re: Help with Lyric Editor Plugin sources please
« Reply #2 on: October 14, 2008, 01:27:00 pm »

I tried the replace verbage, but the plugin just passes that as literal text into the URL.
The only option the plugin gives regarding spaces is to remove them.
This doesn't work on any website I've tried.
Some use underscores, some use pluses.
This isn't configurable that I can see.
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Help with Lyric Editor Plugin sources please
« Reply #3 on: October 14, 2008, 08:44:15 pm »

have you tried substituting the spaces with %20 like a browser does?
Logged
Sean

zxsix

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1753
Re: Help with Lyric Editor Plugin sources please
« Reply #4 on: October 14, 2008, 09:10:41 pm »

That's what the plugin does by default.
The problem is that the only two choices we have are to let it put the %20 in or to remove spaces.
One site I wanted to grab lyrics from uses + where spaces go and it doesn't work with the %20 in there.
There's no option to change it to use +.

So, since I can't get it to work for these sites, can someone share their sources and the URL setting in the plugin that is working for you?
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: Help with Lyric Editor Plugin sources please
« Reply #5 on: October 15, 2008, 04:49:10 pm »

That's going to require a code change. There's nothing you can do to make that work as the plugin's written right now.
Logged

zxsix

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1753
Re: Help with Lyric Editor Plugin sources please
« Reply #6 on: October 15, 2008, 04:55:27 pm »

I don't have my heart set on that particular site.
Can anyone list a couple of alternatives that work and don't have popups?
I have lyricwiki, darklyrics, and lyrics007 working fine.
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: Help with Lyric Editor Plugin sources please
« Reply #7 on: October 20, 2008, 12:40:43 am »

So I opened up the LyricsEditor source code today and started plugging away at trying to get it to use whatever text you specify in place of spaces when doing searches. I can't make any promises that I'll come up with something or that it'll ever see the light of day. I have to figure out what kind of drugs I was on when I wrote this thing and then see if I can get some more. I was never very good at commenting my code. :P
Logged
Pages: [1]   Go Up