Author Topic: Ampersand(&) breaking weblinks despite being correctly escpaed.  (Read 1576 times)

awildturtok

  • Guest
The Links feature seems to be having problems with ampersands, when opening a custom youtube link of the following format

https://www.youtube.com/results?search_type=search_videos&search_query=<Artist> <Title>

With the Artist "King Gizzard & The Lizard Wizard" the following url is opened(Where one can clearly see, that the & is not escpaed like the space character)

https://www.youtube.com/results?search_type=search_videos&search_query=King%20Gizzard%20&%20The%20Lizard%20Wizard%20I%27m%20Not%20In%20Your%20Mind&search_sort=relevance&search_category=0&page=

But the search is only done for "King Gizzard" similarily with "La Monte Young & Marian Zazeela". The same problem occurs with Bandcamp Links of the following format:

https://bandcamp.com/search?q=<Album Artist>


It seems like you are forgetting to escape the ampersand, maybe the .NET method ignores it?

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10690
That's an issue I've run into, as well.

You can work around it with a function.  Just substitute this in place of <Artist>.  You can do the same with other tags, just change <Artist> to whatever tag it is.

 $Replace(<Artist>,&,)
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)