Skip to content

Commit

Permalink
Merge pull request #22 from cheenar/master
Browse files Browse the repository at this point in the history
Fixed downloading multiple files when passing a list to "download_from_link"
  • Loading branch information
v1k45 authored Aug 4, 2018
2 parents 1004bda + 55aca92 commit 04f9482
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qbittorrent/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ def download_from_link(self, link, **kwargs):
if options.get(old_arg) and not options.get(new_arg):
options[new_arg] = options[old_arg]

options['urls'] = link
if type(link) is list:
options['urls'] = "\n".join(link)
else:
options['urls'] = link

# workaround to send multipart/formdata request
# http://stackoverflow.com/a/23131823/4726598
Expand Down

0 comments on commit 04f9482

Please sign in to comment.