INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Mac => Topic started by: rinoatomy on March 07, 2016, 10:36:51 am

Title: manage links expression language
Post by: rinoatomy 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.

Title: Re: manage links expression language
Post by: Matt on March 07, 2016, 10:39:37 am
Couldn't you just Replace(string, / , +)?
Title: Re: manage links expression language
Post by: rinoatomy 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?
Title: Re: manage links expression language
Post by: Matt 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?
Title: Re: manage links expression language
Post by: rinoatomy on March 07, 2016, 11:03:38 am
That should do, I think.

Will report back later.

Thank you!
Title: Re: manage links expression language
Post by: blgentry 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.
Title: Re: manage links expression language
Post by: rinoatomy 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,_)//


Title: Re: manage links expression language
Post by: rinoatomy 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.