fix cineblog01

This commit is contained in:
mac12m99
2019-09-04 21:08:12 +02:00
parent da7e44f55d
commit a9deda4f31
2 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ def regexDbg(item, patron, headers, data=''):
'delimiter': '"""',
'flavor': 'python'
}
r = urllib2.Request(url + '/api/regex', json.dumps(data), headers=headers)
r = urllib2.Request(url + '/api/regex', json.dumps(data, encoding='latin1'), headers=headers)
r = urllib2.urlopen(r).read()
permaLink = json.loads(r)['permalinkFragment']
webbrowser.open(url + "/r/" + permaLink)