Skip to content

Search with URL characters result in errors #16

@arthurv89

Description

@arthurv89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions