Author Topic: Some help needed removing parens & contents from <Title> searches  (Read 1928 times)

sveakul

  • Sr. Member
  • ****
  • Posts: 2438
My MusicBee Internet custom web links are set up to do various website searches by <Artist> and <Title> which I use mainly for radio stream metadata searches, e.g. "https://www.metal-archives.com/search/advanced/searching/songs?songTitle=<Title>&bandName=<Artist>#songs" .

A couple of stations insist on including their website name with the song title metadata, normally in parens, causing the search to fail.  For example, a stream that does this is https://stream01.ungrounded.net/heavymetal ; every search on a playing song's title constructed as <Title> will include the trailing string (http://www.newgrounds.com/audio/listen/number) resulting in a failure from any website on a lookup.

How can I add code to my search expression that would first strip any trailing string within parens, including the parens and the preceding space, from a query that uses <Title> during submission?

Appreciate any code gurus who can help me with this!
Last Edit: June 05, 2020, 12:37:59 AM by sveakul