KickassAPI icon indicating copy to clipboard operation
KickassAPI copied to clipboard

Search with URL characters result in errors

Open arthurv89 opened this issue 10 years ago • 1 comments

When searching for string "Hey Mama David Guetta Feat. Nicki Minaj & Bebe Rexha & Afrojack", it results in the following exception because of URL character "&":

Traceback (most recent call last):
  File "/home/arthur/Dropbox-prive/install-server/scripts/downloadMp3.py", line 7, in <module>
    print next(iter(Search(sys.argv[1]).category(CATEGORY.MUSIC))).magnet_link
StopIteration

Solution: URL-encode the search string

arthurv89 avatar Aug 25 '15 20:08 arthurv89

Thanks for report, I am currently rewriting the api, so I will fix it in new version.

fm4d avatar Aug 25 '15 20:08 fm4d