INTERACT FORUM

Please login or register.

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

Author Topic: manage links expression language  (Read 3288 times)

rinoatomy

  • Junior Woodchuck
  • **
  • Posts: 82
manage links expression language
« on: March 07, 2016, 10:36:51 am »

Hi,

I want to use rate your music to search for my albums. I have a problem when using the hexify string for artists and albums with two names.

for ex: dream theater will be dream%20theater and that link is rejected. it should be dream+theater.

Shoudn't the hexify string substitute the %20 for the + or whatever the right character is?

I'm using the latest version.

Thanks.

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42330
  • Shoes gone again!
Re: manage links expression language
« Reply #1 on: March 07, 2016, 10:39:37 am »

Couldn't you just Replace(string, / , +)?
Logged
Matt Ashland, JRiver Media Center

rinoatomy

  • Junior Woodchuck
  • **
  • Posts: 82
Re: manage links expression language
« Reply #2 on: March 07, 2016, 10:54:41 am »

I don't know.

The album URL on rate your music is https://rateyourmusic.com/release/album/dream_theater/images_and_words/

The link I use in JRiver is:

https:////rateyourmusic.com//release//album//hexify([Artist])//hexify([Album])//

That link will generate the following URL: https://rateyourmusic.com/release/album/dream%20theater/images%20and%20words/ in which will not work.

is there any other suitable string for WEB use instead of HEXIFY?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42330
  • Shoes gone again!
Re: manage links expression language
« Reply #3 on: March 07, 2016, 10:58:47 am »

Right, but just doing this:
Replace(Hexify([Artist]),%20,+)

Make the hexified %20 get replaced with a +.

Isn't that enough?
Logged
Matt Ashland, JRiver Media Center

rinoatomy

  • Junior Woodchuck
  • **
  • Posts: 82
Re: manage links expression language
« Reply #4 on: March 07, 2016, 11:03:38 am »

That should do, I think.

Will report back later.

Thank you!
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: manage links expression language
« Reply #5 on: March 07, 2016, 11:15:28 am »

It looks like that web site wants some specific formatting that's not any kind of normal web encoding.  This seems to work for me, but the Artist and Album have to match exactly what that site expects.

Code: [Select]
https:////rateyourmusic.com//release//album//fixcase(replace([Artist],/ ,_),4)//fixcase(replace([Album],/ ,_), 4)//
It also has a way of doing searches based on Artist name.  It might be worth making a second link for that.

Brian.
Logged

rinoatomy

  • Junior Woodchuck
  • **
  • Posts: 82
Re: manage links expression language
« Reply #6 on: March 07, 2016, 11:26:33 am »

Matt,

That worked!

but now I need to insert the fixcase string there as well cause rate your music url needs to be all lowercase.

How do I insert this "fixcase([artist]), 4)" on the link below?

https:////rateyourmusic.com//release//album//Replace(Hexify([Artist]),%20,_)//Replace(Hexify([album]),%20,_)//


Logged

rinoatomy

  • Junior Woodchuck
  • **
  • Posts: 82
Re: manage links expression language
« Reply #7 on: March 07, 2016, 11:28:29 am »

It looks like that web site wants some specific formatting that's not any kind of normal web encoding.  This seems to work for me, but the Artist and Album have to match exactly what that site expects.

Code: [Select]
https:////rateyourmusic.com//release//album//fixcase(replace([Artist],/ ,_),4)//fixcase(replace([Album],/ ,_), 4)//
It also has a way of doing searches based on Artist name.  It might be worth making a second link for that.

Brian.

THANK YOU

All good now.
Logged
Pages: [1]   Go Up