Skip to content

Commit

Permalink
Odd link copy problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinzulen authored and Jinzulen committed Mar 8, 2021
1 parent 66a5957 commit b2e3c0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, time, json, requests, mimetypes, ScreenCloud
import os, time, json, requests, ScreenCloud

from PythonQt.QtUiTools import QUiLoader
from PythonQt.QtCore import QFile, QSettings, QStandardPaths
Expand Down Expand Up @@ -208,13 +208,13 @@ def upload(self, screenshot, name):
"User-Agent": "ScreenCloud-Cloudup"
})

# Does the user want the direct link?
if self.copyDirect:
ScreenCloud.setUrl(j["direct_url"])

# Does the user want the Cloudup item link?
if self.copyCloudup:
ScreenCloud.setUrl(j["url"])

# Does the user want the direct link?
if self.copyDirect:
ScreenCloud.setUrl(j["direct_url"])
except requests.exceptions.RequestException as E:
ScreenCloud.setError("Failued to upload to Cloudup: " + E.message)
return False
Expand Down

0 comments on commit b2e3c0a

Please sign in to comment.