(2021-05-12, 13:48)black_eagle Wrote: (2021-05-11, 11:42)kenmills Wrote: Awesome thx! I look forward to hearing from him
Yeah, I'm aware that it needs an update (badly). I will get around to it as soon as I can, just real life keeps getting in the way! If you want to fork it, improve it and/or maintain it then go right ahead.
Hey mate! Nice to meet you!
I totally get it; RL is crazy these days, hey? The lockdowns in Canada are crazy, and the US isn't any better
I just downloaded and opened the addon locally on my PC, and edited the default.py to adhere to Python 3 standards, and almost got it to work with Matrix... The addon installs, and runs, but when it executes it fails.
I am just stuck on a single line - I think. I am not a developer, nor am I that familiar with Python, let alone Python 3 :-) I just plodded through.
I'll see about setting up a github account and forking it officially etc... However, if you have 2 mins, and can easily solve the following, I think we may have a working addon....
The line that gets stuck is:
json_query = unicode(json_query, 'utf-8', errors='ignore')
Now I know that Python 3, you switch str for unicode, since the queries are all encoded. However, when I do that and use json_query = str(json_query, 'utf-8', errors='ignore')
I get the error:
json_query = str(json_query, 'utf-8', errors='ignore')
TypeError: decoding str is not supported
The entire chunk of code is:
json_query = unicode(json_query, 'utf-8', errors='ignore')
json_query = jsoninterface.loads(json_query)
if json_query.has_key('result'):
dbglog('Clean library sucessfully called')
Anyways, if you know how to fix that chunk or line, I'll test and if it works, then we have a Matrix compatible version :-)
Cheers!
Ken