INTERACT FORUM

More => Old Versions => Media Center 17 => Topic started by: zzdpmjpr on September 19, 2012, 10:49:26 am

Title: Modifying searches under Links
Post by: zzdpmjpr on September 19, 2012, 10:49:26 am
Hi

I am pretty new here.

I am trying to tailor some of the searches under Links. For example the Wiki search uses Artist - I would rather use Album or Album Artist. A field is referenced [WikiArtistSearchURL]. I can't find where this is held/maintained. Is it possible to set up an alternative and if so where is that done? Also the google search hexify's a field [Search]. Where is this held/maintened?

I couldn't find any information in this area so any help most wlcome

John
Title: Re: Modifying searches under Links
Post by: MrC on September 19, 2012, 11:43:26 am
Some of the fields such as [WikiArtistSearchURL] and [Search] are built-into MC.  [Search] will be based on the currently selected item, and this would vary for different media types.

You can combine various fields and construct a query that uses other fields too.  Examples:

http:////images.google.com//images?q=Hexify([Artist]) Hexify([Album])
http:////www.youtube.com//results?search_query="Hexify(regex([Artist] [Name], /#^(.+?)(?: [[(]extended\b[^)\]]*[)\]])?$#/, 1))"&btn=&type=all
http:////www.allrovi.com//search//movies//Replace([Name], ,+)
Title: Re: Modifying searches under Links
Post by: zzdpmjpr on September 21, 2012, 03:56:52 am
Many thanks for the information MrC.

I have got a couple of searches working fine but I can't do it for Wiki and Amazon. Does anyone know where I can find a definitive format for the query URL  for these sites?

Many thanks
John
Title: Re: Modifying searches under Links
Post by: MrC on September 21, 2012, 02:21:21 pm
You can generally work out the necessary search parameters by examining the URL of the search from the site itself.  For example, Brian Eno's Discreet Music search on Amazon:

General:
   http://www.amazon.com/s/field-keywords=brian+eno+discreet+music

Limit to Music area (CDs):
  http://www.amazon.com/s/url=search-alias=music&field-keywords=Brian+Eno+Discreet+Music

Limit to Downloadable Music area (MP3s):
   http://www.amazon.com/s/url=search-alias=digital-music&field-keywords=Brian+Eno+Discreet+Music

Here's an example Search URL to add to the link (searching the CD area for the selected Artist and Album):
   http:////www.amazon.com//s//url=search-alias=music&field-keywords=Replace([Artist] [Album], / , +)

Title: Re: Modifying searches under Links
Post by: zzdpmjpr on September 21, 2012, 03:48:42 pm
Many thanks again, MrC
Title: Re: Modifying searches under Links
Post by: MrC on September 21, 2012, 03:53:48 pm
You're welcome.

Which Wiki site are you looking to link, and what fields (Artist, Album, etc.) ?
Title: Re: Modifying searches under Links
Post by: zzdpmjpr on September 23, 2012, 02:57:29 pm
This search keeps getting rejected as invalid.

<Item Name="Search URL”> http:////www,en.wikipedia.org/wiki/Special:Search?search= Replace([Album], / , +)</Item>

The manual search I am basing it on is               http://en.wikipedia.org/wiki/Special:Search?search=chord+company

Thanks for your perseverance

John
Title: Re: Modifying searches under Links
Post by: MrC on September 23, 2012, 03:10:21 pm
Double up on Forward Slashes.  The comma after www should be a dot, and no space after the search= term:

   http:////www.en.wikipedia.org//wiki//Special:Search?search=Replace([Album], / , +)
Title: Re: Modifying searches under Links
Post by: zzdpmjpr on September 25, 2012, 09:59:57 am
Fraid I can only just see the characters let alone the punctuation on my laptop.

It works fine now. I was also putting other data, like base search url, in, which confused it and me. This is what comes of blundering about in the dark though my world is a little less dark now.

Many thanks
John