summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-04-28 19:43:46 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-04-28 19:43:46 +0200
commite3ea50ffbf3567247e2779d61eb1293e967be1d5 (patch)
tree1fa60e20668a625f8259de4407a58e1642755bf9
parent34a441deebff33178d71bf5650c79833bd044c0a (diff)
Fix missing setClipboard for multipastes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xfb.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/fb.py b/fb.py
index a891572..c1e4c5e 100755
--- a/fb.py
+++ b/fb.py
@@ -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: