KickassAPI
KickassAPI copied to clipboard
Search with URL characters result in errors
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
Thanks for report, I am currently rewriting the api, so I will fix it in new version.