TextArt: shorten paste name

This commit is contained in:
Gordon Shumway 2020-02-22 21:19:02 -05:00 committed by GitHub
parent ff7cc0b24c
commit 0c363bd63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,6 +385,7 @@ class TextArt(callbacks.Plugin):
def doPaste(self, description, paste):
try:
description = description.split('/')[-1]
apikey = self.registryValue('pasteAPI')
payload = {'description':description,'sections':[{'contents':paste}]}
headers = {'X-Auth-Token':apikey}