diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-04-28 19:43:46 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-04-28 19:43:46 +0200 |
commit | e3ea50ffbf3567247e2779d61eb1293e967be1d5 (patch) | |
tree | 1fa60e20668a625f8259de4407a58e1642755bf9 /fb.py | |
parent | 34a441deebff33178d71bf5650c79833bd044c0a (diff) |
Fix missing setClipboard for multipastes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.py')
-rwxr-xr-x | fb.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -561,12 +561,14 @@ class FBClient: resp = self.curlw.upload_files(upload_files) if self.args.multipaste or len(resp) > 1: - self.multipaste([f.id for f in resp]) + resp = self.multipaste([f.id for f in resp]) + urls = [resp["url"]] else: urls = [f.url for f in resp] - for url in urls: - print(url) - self.setClipboard(' '.join(urls)) + + for url in urls: + print(url) + self.setClipboard(' '.join(urls)) def setClipboard(self, content): try: @@ -585,7 +587,7 @@ class FBClient: data.append({"ids["+id+"]": id}) resp = self.curlw.send_post("/file/create_multipaste", data) - print(resp["url"]) + return resp def upload(self): if self.args.tar: |