# \[Junodownload\] Updated script, need help with album + artist search

**URL:** <https://community.mp3tag.de/t/junodownload-updated-script-need-help-with-album-artist-search/18992>\
**Category:** Web Sources Discussion\
**Created:** [May 19, 2017, 3:50pm UTC](https://community.mp3tag.de/t/junodownload-updated-script-need-help-with-album-artist-search/18992 "2017-05-19T15:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)\
**Post date:** [May 19, 2017, 3:50pm UTC](https://community.mp3tag.de/t/junodownload-updated-script-need-help-with-album-artist-search/18992/1 "2017-05-19T15:50:00Z")

</div>

I updated the junodownload script and searching by a single field (i.e. album) is fine. However, I came across a problem when I'm trying to search by album **and** artist.

**Junodownload query example/model** : [http://www.junodownload.com/search/?q](http://www.junodownload.com/search/?q)[artist][]=artist+name&q[title][]=album+title

artist+name = %ARTIST% with "+" as its word separator  
album+title = %ALBUM% with "+" as its word separator

**Problem** :  
[Searchby] strips out "[foo][]="

## **Current configuration** : [IndexUrl]=http://www.junodownload.com/search/?q[artist][]=%s [WordSeperator]=+ [IndexFormat]=%Artist%|%\_url%|%Album%|%Publisher%|%Date% [SearchBy]=$replace(%ARTIST%, ,+)&q[title][]=$replace(%ALBUM%, ,+) [Encoding]=utf-8

**Resulting query string** : [http://www.junodownload.com/search/?q](http://www.junodownload.com/search/?q)[artist][]=John+Smith&q=First+Album =\> "Error connecting to server... provided uri is invalid"

**Expected query string** : [http://www.junodownload.com/search/?q](http://www.junodownload.com/search/?q)[artist][]=John+Smith&q[title][]=First+Album

As you can see, q=First+Album should've been q[title][]=First+Album

Compare the following:  
[http://www.junodownload.com/search/?q](http://www.junodownload.com/search/?q)[artist][]=sasha&q=scene+delete+the+remixes  
to  
[http://www.junodownload.com/search/?q](http://www.junodownload.com/search/?q)[artist][]=sasha&q[title][]=scene+delete+the+remixes

Or, is it possible to escape certain characters like "%" in [SearchBy] to yield something like the following for "%s":  
?q%5Bartist%5D%5B%5D=John+Smith&q%5Btitle%5D%5B%5D=First+Album

From the example above, the following works: [http://www.junodownload.com/search/?q[artist][]=sasha&q[title][]=scene+delete+the+remixes](http://www.junodownload.com/search/?q%5Bartist%5D%5B%5D=sasha&q%5Btitle%5D%5B%5D=scene+delete+the+remixes)

---

<div class="post-metadata">

**Author:** ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)\
**Post date:** [May 20, 2017, 4:18am UTC](https://community.mp3tag.de/t/junodownload-updated-script-need-help-with-album-artist-search/18992/2 "2017-05-20T04:18:58Z")

</div>

> [@ms6676749](#):
>
> Or, is it possible to escape certain characters like "%"

Answering myself here, just surround the string that I want to escape with apostrophe's, for example from above:

[SearchBy]= **'**?q%5Bartist%5D%5B%5D= **'** $replace(%ARTIST%, ,+) **'** &q%5Btitle%5D%5B%5D= **'** $replace(%ALBUM%, ,+)

---

<div class="post-metadata">

**Author:** ![olafbj](https://community.mp3tag.de/user_avatar/community.mp3tag.de/olafbj/32/5670_2.png) [@olafbj](https://community.mp3tag.de/u/olafbj)\
**Post date:** [August 19, 2017, 2:43pm UTC](https://community.mp3tag.de/t/junodownload-updated-script-need-help-with-album-artist-search/18992/3 "2017-08-19T14:43:53Z")

</div>

Where could one optain that script ?!! 🙂 🙂
